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/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/api/cffread.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/api/hotconv.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/api/pstoken.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/api/typecomp.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/bits.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/dumpcycles.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/dumpnode.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/egman.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/err.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fcache.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/generic.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/globals.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/hash.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/hash.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mode.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mrhoist.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/pred.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/proto.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/stdpccts.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/syn.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/tokens.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/automata.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_p.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/err.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/main.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/mode.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/relabel.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/stdpccts.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/tokens.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ASTBase.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ASTBase.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokPtr.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokPtrImpl.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokenBuffer.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokenBuffer.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokenStream.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/BufFileInput.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/BufFileInput.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLG_stream_input.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLexer.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLexerBase.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLexerBase.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PBlackBox.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/SList.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ast.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ast.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charbuf.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charptr.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charptr.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/config.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/dlgauto.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/dlgdef.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/int.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_assert.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_iostream.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_istream.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_setjmp.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_stdarg.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_stdio.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_stdlib.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pccts_string.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/pcctscfg.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/slist.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/err.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/gen.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/SASTBase.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/SCommonAST.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/STreeParser.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/astlib.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/sintstack.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/sorcerer.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/sorlist.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/h/sstack.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/hash.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/hash.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/CASTBase.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/STreeParser.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/errsupport.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sintstack.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorcerer.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorlist.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sstack.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/look.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/mode.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/proto.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/stdpccts.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sym.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test6.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test7/main.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test7/stdpccts.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test7/test7.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/tokens6.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/test4/AST.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/test4/SimpleTreeParser.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/test4/SimpleTreeParser.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/test4/main.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/token3.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/tokens.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/rexpr/rexpr.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/rexpr/rexpr.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/rexpr/test.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/set/set.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/set/set.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/sym/sym.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/sym/template.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/11/input.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/2/MyLexer.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/2/MyLexer.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/MyLexer.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/MyLexer.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/mytokens.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/4/mytokens.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/5/input.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/6/main.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/8/main.cpp Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/resource/dictops.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/resource/txops.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/t13fail.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/BASE.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/BASE.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/CFF_.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/CFF_.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GDEF.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GDEF.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GSUB.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GSUB.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/VORG.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/VORG.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/anon.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/anon.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/cmap.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/cmap.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/codepage.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/common.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/config.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/dlgauto.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/dlgdef.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featerr.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featgram.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featmode.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feattoks.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/head.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/head.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hhea.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hhea.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hmtx.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hmtx.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/maxp.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/maxp.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/otl.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/otl.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/post.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/post.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/schinese.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/sfnt.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/sfnt.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/uniblock.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/vhea.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/vhea.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/vmtx.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/vmtx.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/winansi.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/xxxx.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/xxxx.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/cdv1axis.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/charset.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/charset.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/common.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/cs.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/cs.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/eurosans.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/euroserf.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/fdselect.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/fdselect.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/fillinmm_sans.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/fillinmm_serif.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/font.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/igara0.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/igara1.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/igara2.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/igara3.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/igara4.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/isocenm.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/jenson.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/jimbo0.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/jimbo1.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/jimbo2.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/kepler.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/package.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/rgara0.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/rgara1.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/rgara2.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/rgara3.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/sindex.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/sindex.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13fail.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/Win32/WIN.C Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/cbpriv.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/file.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/cb.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/cbpriv.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/fcdb.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/file.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lctype.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lerrno.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstdio.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstdlib.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/package.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/systemspecific.h Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/mac/mac.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c Examining data/afdko-3.5.1+dfsg1/c/makeotf/source/makeotflib.h Examining data/afdko-3.5.1+dfsg1/c/mergefonts/source/help.h Examining data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c Examining data/afdko-3.5.1+dfsg1/c/mergefonts/source/options.h Examining data/afdko-3.5.1+dfsg1/c/mergefonts/source/usage.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/abfdesc.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/abferr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/absfont.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/blend.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ceferr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/cfembed.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/cffread.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/cffwrite.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/cfrerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/cfwerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ctutil.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/dynarr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/nameread.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/parse.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/pdfwrite.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/pdwerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/psterr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/pstoken.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/safetime.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/sfntread.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/sfntwrite.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/sfrerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/sfwerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/sha1.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportasbasic.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportaszone.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportcanthappen.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportenvironment.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportexcept.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportfp.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportossyslib.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/supportpublictypes.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/svgwrite.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/svread.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/svrerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/svwerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t1cerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t1cstr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t1read.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t1rerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t1werr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t1write.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t2cerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/t2cstr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ttread.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ttrerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/tx_shared.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ufoerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/uforead.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ufowerr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/ufowrite.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/api/varread.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/agl2uv.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/applestd.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/dblmapuv.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/dictops.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/excs0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/exenc0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/exenc1.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/exsubcs0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/isocs0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macarab.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macce.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/maccroat.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/maccyril.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macdevan.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macexprt.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macfarsi.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macgreek.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macgujar.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macgurmk.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/machebrw.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/maciceln.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macrmian.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macromn0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macthai.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/macturk.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/poststd.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/stdenc0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/stdenc1.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/stdenc2.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/stdenc3.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/stdstr0.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/stdstr1.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/txops.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/uv2agl.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/uv2zding.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/resource/zding2uv.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_afm.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_compare.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_desc.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_metrics.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_path.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_charset.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_charset.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_encoding.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_encoding.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_fdselect.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_fdselect.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_share.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_varstore.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_varstore.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/dynarr/dynarr.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/nameread/nameread.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntread/sfntread.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntwrite/sfntwrite.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/sha1/sha1.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/support/canthappen.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/support/except.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/support/fixed.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/sv_ops.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1cstr/t1cstr.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read_keys.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write_flexothers.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write_gcothers.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write_hintothers.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write_procsetothers.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/t2cstr/t2cstr.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/afm.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/cef.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/cff.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/cff2.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/dcf.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/dump.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/mtx.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/path.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/pdf.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/ps.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/svg.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/t1.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/ufo.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/ufo_ops.h Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c Examining data/afdko-3.5.1+dfsg1/c/public/lib/source/varread/varread.c Examining data/afdko-3.5.1+dfsg1/c/rotatefont/source/help.h Examining data/afdko-3.5.1+dfsg1/c/rotatefont/source/options.h Examining data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c Examining data/afdko-3.5.1+dfsg1/c/rotatefont/source/usage.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dda.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dda.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Ddesc.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Ddesc.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dfile.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dfile.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dhead.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dhead.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dname.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dname.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dpriv.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dtto.c Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dtto.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Win32/otfcomparelib.h Examining data/afdko-3.5.1+dfsg1/c/sfntdiff/source/numtypes.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eda.c Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eda.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Efile.c Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Efile.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eglobal.c Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eglobal.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Emsgs.c Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Emsgs.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.c Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/Win32/otftableeditor.h Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c Examining data/afdko-3.5.1+dfsg1/c/sfntedit/source/otftableeditor.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_ALMX.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_BASE.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_BBOX.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_BLND.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_CID_.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_CNPT.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_CSNP.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_EBDT.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_EBLC.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_ENCO.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_FNAM.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_FNTP.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_GDEF.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_GLOB.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_GPOS.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_GSUB.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_HFMX.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_LTSH.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_META.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_METR.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_MMFX.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_MMSD.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_MMVR.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_OS_2.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_ROTA.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_SING.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_SUBS.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_TYP1.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_VFMX.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_VORG.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_WDTH.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_applestd.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_bdat.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_bloc.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_bsln.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_cmap.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_common.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_fbit.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_fdsc.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_feat.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_fvar.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_gasp.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_glyf.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_hdmx.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_head.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_hhea.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_hmtx.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_just.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_kern.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_lcar.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_loca.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_lookup.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_maxp.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_mort.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_name.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_opbd.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_post.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_prop.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_sbit.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_sfnt.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_trak.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_tto.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_unicode.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_vhea.h Examining data/afdko-3.5.1+dfsg1/c/spot/sfnt_includes/sfnt_vmtx.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/BASE.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/BASE.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/BBOX.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/BBOX.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/BLND.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/BLND.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/CID_.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/CID_.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/EBLC.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/EBLC.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/ENCO.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/ENCO.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/FNAM.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/FNAM.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/GDEF.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/GDEF.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/GLOB.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/GLOB.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/HFMX.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/HFMX.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/LTSH.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/LTSH.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/META.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/META.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/MMFX.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/MMFX.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/MMSD.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/MMSD.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/MMVR.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/MMVR.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/OS_2.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/OS_2.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/SING.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/SING.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/TTdumpinstrs.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/TTdumpinstrs.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/TYP1.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/TYP1.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/VORG.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/VORG.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/WDTH.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/WDTH.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/bitstr.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/cffread.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/cmap.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/da.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/da.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/desc.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/desc.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/dictops.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/dump.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/dump.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/excs.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/excs0.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/exenc0.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/exenccd.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/exsubcs.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/exsubcs0.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/fdsc.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/fdsc.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/feat.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/feat.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/file.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/file.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/fvar.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/fvar.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/gasp.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/gasp.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/global.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/global.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/glyf.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/glyf.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/hdmx.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/hdmx.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/head.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/head.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/hhea.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/hhea.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/hmtx.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/hmtx.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/isocs.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/isocs0.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/kern.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/kern.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/loca.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/loca.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/main.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/map.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/map.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/maxp.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/maxp.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/name.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/name.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/nicename.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/numtypes.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/opt.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/opt.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/package.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/pathbuild.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/pathbuild.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/post.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/post.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/proof.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/proof.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/res.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/res.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/spot.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/spotmsgs.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/spotmsgs.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/stdenc0.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/stdenccd.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/stdstr.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/stdstr1.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/strftime.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/sys.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/sys.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/t13fail.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/t13supp.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/trak.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/trak.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/tto.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/tto.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/txops.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/vhea.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/vhea.h Examining data/afdko-3.5.1+dfsg1/c/spot/source/vmtx.c Examining data/afdko-3.5.1+dfsg1/c/spot/source/vmtx.h Examining data/afdko-3.5.1+dfsg1/c/tx/source/help.h Examining data/afdko-3.5.1+dfsg1/c/tx/source/options.h Examining data/afdko-3.5.1+dfsg1/c/tx/source/tx.c Examining data/afdko-3.5.1+dfsg1/c/tx/source/usage.h Examining data/afdko-3.5.1+dfsg1/c/type1/source/type1.c FINAL RESULTS: data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:24:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:88:11: [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(HdrAction, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:102:13: [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(FirstAction, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:436: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). else strcpy(CurrentClassName, name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:459:25: [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). /* MR22 */ strcpy(BaseClassName,LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:570:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(pdecl, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:592:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ret, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:691:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:752:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:786:18: [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). /* MR1 */ strcpy(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:822:18: [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). /* MR1 */ strcpy(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:870:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(CurPredName,name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:1604:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2361:19: [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(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2429:13: [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(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2518:55: [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). /* MR21 */ strcpy(pFirstSetSymbol, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2531:53: [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). /* MR21 */ strcpy(pFirstSetSymbol, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2632:31: [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(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2890: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(a, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2996:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_retv->signalname, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3006: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(_retv->signalname, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3026:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_retv->action, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3551:1: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile]!=NULL?FileStr[CurFile]:"stdin", zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/bits.c:78:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f, format, (wd&byte_mask[i])>>(i*BitsPerByte)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c:65:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(q, parm); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c:105:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(a->action, action); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:537:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[predicate->source->file], data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:540:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[predicate->source->file], data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:544:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[predicate->source->file], data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:547:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[predicate->source->file], data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:598:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:619:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt2->file], alt2->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:643:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:657:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt2->file], alt2->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:697:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[parentRule->file],parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:723:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr,FileStr[parentRule->file],parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:735:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[parentRule->file], parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:759:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[parentRule->file], parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:772:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[parentRule->file], parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:837:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[parentRule->file], parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:850:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[parentRule->file], parentRule->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1030:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1077:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1128:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1239:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1357:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[alt1->file], alt1->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:247:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurAmbigfile], CurAmbigline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:258:4: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurAmbigfile], CurAmbigline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:1246:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurAmbigfile], CurAmbigline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:1871:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:1968:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:2213:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stdout,TerminalString(tn->token)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:153:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen(s) {tab(); fprintf(output, s);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:154:28: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen1(s,a) {tab(); fprintf(output, s,a);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:155:30: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen2(s,a,b) {tab(); fprintf(output, s,a,b);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:156:31: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen3(s,a,b,c) {tab(); fprintf(output, s,a,b,c);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:157:33: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen4(s,a,b,c,d) {tab(); fprintf(output, s,a,b,c,d);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:158:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen5(s,a,b,c,d,e) {tab(); fprintf(output, s,a,b,c,d,e);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:159:37: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen6(s,a,b,c,d,e,f) {tab(); fprintf(output, s,a,b,c,d,e,f);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:160:39: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define gen7(s,a,b,c,d,e,f,g) {tab(); fprintf(output, s,a,b,c,d,e,f,g);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:162:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen(s) {fprintf(output, s);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:163:22: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen1(s,a) {fprintf(output, s,a);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:164:23: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen2(s,a,b) {fprintf(output, s,a,b);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:165:25: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen3(s,a,b,c) {fprintf(output, s,a,b,c);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:166:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen4(s,a,b,c,d){fprintf(output, s,a,b,c,d);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:167:28: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen5(s,a,b,c,d,e){fprintf(output, s,a,b,c,d,e);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:168:30: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen6(s,a,b,c,d,e,f){fprintf(output, s,a,b,c,d,e,f);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:169:32: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _gen7(s,a,b,c,d,e,f,g){fprintf(output, s,a,b,c,d,e,f,g);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2305:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s_set", TokenString(p->token)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2306:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bufErrSet, "%s_errset", TokenString(p->token)); /* MR23 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2328:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s_setbar", TokenString(p->token)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2329:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(bufErrSet, "%s_errsetbar", TokenString(p->token)); /* MR23 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:4521:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(file, LineInfoFormatStr,line,fileName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:4524:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(file, LineInfoFormatStr,line,prevFileNameMS); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:707:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. /* MR26 */ fprintf(output,strBetween(pSymbol, t, pSeparator)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:772:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f,strBetween(pDataType, pSymbol, pSeparator)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:853:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f,strBetween(pDataType, pSymbol, pSeparator)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:855:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f,strBetween(pSymbol, pEqualSign, pSeparator)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:160:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(Fn_in_Fl, one_fn); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:827:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(Parser_h_Name, CurrentClassName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:829:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(Parser_c_Name, CurrentClassName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:830:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(Parser_c_Name, CPP_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1061:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1157:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, fs); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1162:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(buf,suffix); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1176:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1192:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1194:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1196:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1198:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1231:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, s, a1, a2, a3); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1247:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, s, d); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1263:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, s, d1, d2); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1529:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newname, OutputDirectory); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1533:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newname, dir_sym); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1535:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newname, p); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1613:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1627:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1641:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1666:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1680:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1694:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1710:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ua->action, s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1726:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s", name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1748:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, buf); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:700:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key,rule); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mrhoist.c:2218:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ruleNameStatic2,"%s/?",ruleNameStatic1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mrhoist.c:2220:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ruleNameStatic2,"%s/%d",ruleNameStatic1,offset+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1288:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( !GenCC ) sprintf(buf,"zzaArg(zztasp%d,%s)", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1290:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(buf,"_t%d%s", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1311:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( !GenCC ) sprintf(buf,"zzaArg(zztasp%d,%s).", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1313:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(buf,"_t%d%s.", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1347:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( !GenCC ) sprintf(buf,"zzaArg(zztasp%s,%s)",i,j); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1348:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(buf,"_t%s%s",i,j); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1372:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"_retv.%s",&zzbegexpr[1]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1442:20: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( GenCC ) sprintf(buf,"_ast%d%s",BlkLevel-1,zzbegexpr+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1443:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(buf,"zzastArg(%s)",zzbegexpr+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1487:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s_ast", zzbegexpr+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:90:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(class_stream,format,string); /* MR1 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:92:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(OUT,format,string); /* MR1 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_p.c:946:1: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, file_str[0]!=NULL?file_str[0]:"stdin", zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:125:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s_h", name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:139:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:244:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. /* MR1 */ fprintf(class_stream, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:246:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. /* MR1 */ fprintf(class_stream, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:715:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s", class_name, suffix); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:51:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,s,file,line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:170:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,ErrHdr, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:184:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,ErrHdr, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:198:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr,ErrHdr, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:230:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newname, OutputDirectory); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:234:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newname, dir_sym); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:237:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newname, p); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:557:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(zzFAILtext, LT(i)->getText()); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:653:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(eMsgBuffer, err, d); // dangerous, but I don't care data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:660:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(eMsgBuffer, err, s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:667:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(eMsgBuffer, err, s, t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:860:11: [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. return vfprintf(pFile, pFormat, arglist); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ASTBase.cpp:252:15: [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. int iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:95:17: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:136:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. else sprintf(object,"tok_%s",s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:205:13: [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(_text,s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:278:13: [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(_text,s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokenBuffer.cpp:360:12: [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. iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLexerBase.cpp:298:12: [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. iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:605:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ebuf, "mismatch token in scan(): %s", scan_token_str(parser->token)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:681:15: [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. int iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h:96:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zzStackOvfMsg, __FILE__, __LINE__); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ast.h:38:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zzStackOvfMsg, __FILE__, __LINE__); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charptr.c:57:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(*a, text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:195:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(text, LATEXT(i)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:302:25: [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). for (i=0; i<LL_K; i++) strcpy(buf->textLA[i], zztextLA[i]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:307:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf->text, zzlextext); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:362:25: [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). for (i=0; i<LL_K; i++) strcpy(zztextLA[i], buf->textLA[i]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:367:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(zzlextext, buf->text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:643:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(NLATEXT, zzinf_text[zzinf_labase]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:731:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(&zzinf_text_buffer[zzinf_text_buffer_index], NLATEXT); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/slist.cpp:113:15: [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. int iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:39:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(CPPParser_h_Name, CurClassName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:118:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(CPPParser_C_Name, CurClassName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:119:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(CPPParser_C_Name, CPP_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/gen.c:130:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(CPPParser_h_Name, CurClassName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/STreeParser.cpp:158:15: [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. int iRet = vfprintf(pFile, pFormat, marker); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:751:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ebuf, "mismatch token in ast_scan(): %s", scan_token_str(parser->token)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/look.c:643:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[t->file], t->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/look.c:662:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[t->file], t->line); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:382:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( p->arg ) sprintf(buf, "%s ___", p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:383: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). else strcpy(buf, p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:493:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, s, a1, a2, a3); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:508:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, s, d); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:522:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, f, l); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:683:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, fs); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:688:16: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). if ( GenCPP ) strcat(buf, CPP_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:745:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newname, OutputDirectory); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:749:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newname, dir_sym); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:752:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newname, p); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:909:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:936:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->type, t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:937:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->label, lab); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:938:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->init, init); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:977:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->init, s+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:980:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->decl, decl); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:981:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->var, id_in_decl(decl)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1038:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f, prefix); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1076:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(call, prefix); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1105:4: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, duh); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1111:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(call, s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:912:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s", zzbegexpr+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:370: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(tokdefs_file, LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:371: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(tokdefs_file, tokdefs_file+1); /* remove quotes */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:965:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(zzastArg(1)->label, label.text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:972: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(zzastArg(1)->label, label.text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1054:11: [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(zzastArg(1)->label, label.text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1385:15: [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(zzastArg(1)->label, label.text); t = zzastArg(1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1446: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(zzastArg(1)->label, label.text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1884:1: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, ErrHdr, FileStr[CurFile]!=NULL?FileStr[CurFile]:"stdin", zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:43:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {fprintf(stderr, ErrHdr, f, l); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:46:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:49:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:53:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {found_error=1; fprintf(stderr, ErrHdr, f, l); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:56:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {found_error=1; fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:59:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. {found_error=1; fprintf(stderr, ErrHdr, FileStr[CurFile], zzline); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test6.c:59:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p->text, s); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test7/stdpccts.h:17:40: [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). #define zzcr_ast(tr, attr, tok, txt) { strcpy(tr->text, txt); tr->token=tok; } data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/test4/AST.h:14:46: [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). AST(ANTLRTokenPtr t){ _type = t->getType(); strcpy(text, t->getText()); } data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:226:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ATOKENBUFFER_O, ATOKENBUFFER_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:228:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ATOKENBUFFER_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:229:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(APARSER_O, APARSER_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:231:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(APARSER_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:233:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ASTBASE_O, ASTBASE_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:235:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ASTBASE_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:237:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(PCCTSAST_O, PCCTSAST_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:239:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(PCCTSAST_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:241:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(LIST_O, LIST_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:243:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(LIST_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:245:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(DLEXERBASE_O, DLEXERBASE_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:247:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(DLEXERBASE_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:271:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( p->arg ) sprintf(buf, "%s ___", p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:272: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). else strcpy(buf, p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:748:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s", outdir); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:387:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ATOKENBUFFER_O, ATOKENBUFFER_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:389:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ATOKENBUFFER_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:390:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(APARSER_O, APARSER_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:392:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(APARSER_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:394:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ASTBASE_O, ASTBASE_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:396:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ASTBASE_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:398:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(PCCTSAST_O, PCCTSAST_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:400:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(PCCTSAST_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:402:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(LIST_O, LIST_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:404:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(LIST_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:406:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(DLEXERBASE_O, DLEXERBASE_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:408:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(DLEXERBASE_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:440:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( p->arg ) sprintf(buf, "%s ___", p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:441: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). else strcpy(buf, p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:1061:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s", outdir, DirectorySymbol); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:208:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(strcat(cfiles," "), t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:265:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ATOKENBUFFER_O, ATOKENBUFFER_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:267:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ATOKENBUFFER_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:268:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(APARSER_O, APARSER_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:270:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(APARSER_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:272:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ASTBASE_O, ASTBASE_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:274:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ASTBASE_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:276:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(PCCTSAST_O, PCCTSAST_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:278:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(PCCTSAST_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:280:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(LIST_O, LIST_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:282:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(LIST_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:284:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(DLEXERBASE_O, DLEXERBASE_C); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:286:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(DLEXERBASE_O, OBJ_FILE_SUFFIX); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:310:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. if ( p->arg ) sprintf(buf, "%s ___", p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:311: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). else strcpy(buf, p->option); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:760:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s", outdir, DirectorySymbol); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:452: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(g->error_id_text, sub->id_text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:708: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(sub->id_text, g->error_id_text); /* save feature and lookup names for writing phase */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:1852:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %d]", filename, lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:1943:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %d]", filename, lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3626:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s current line %ld previous line %ld]", fileName, cur->lineNum, prev->lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3664:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s current line %ld previous line %ld]", fileName, cur->lineNum, prev->lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3708:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %d]", fileName, lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3733:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %d]", fileName, lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3955:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %ld]", h->new.fileName, baseRec->lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3981:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %ld]", h->new.fileName, baseRec->lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:4228:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s line %ld]", h->new.fileName, baseRec->lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:4427:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, " [%s current line %ld line previous line %ld]", h->new.fileName, baseRec->lineNum, prevRec->lineNum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GSUB.c:352: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(g->error_id_text, sub->id_text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GSUB.c:572: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(sub->id_text, g->error_id_text); /* save feature and lookup names for writing phase */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:467:33: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dupeMsg, axisMsg); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:472:29: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(dupeMsg, baseMsg, count); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:78:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, zzStackOvfMsg, __FILE__, __LINE__); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/cmap.c:296:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "cmap{plat=%u,script=%u,lang=%u}: %s", h->platformId, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:199:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(text, LATEXT(i)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:275: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(buf->textLA[i], zztextLA[i]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:281: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(buf->text, zzlextext); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:326: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(zztextLA[i], buf->textLA[i]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:332: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(zzlextext, buf->text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:617: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(NLATEXT, zzinf_text[zzinf_labase]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:696: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(&zzinf_text_buffer[zzinf_text_buffer_index], NLATEXT); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:464:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s [%s %d]", msgVar, INCL.file, zzline); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:476: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(*dst, src); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1118:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1465: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(vd->valueName, valueName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1517: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(ad->anchorName, anchorName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1879: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(gname, firstName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1909:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fmt, "%%s%%0%dd%%s", numLen); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1915:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(gname, fmt, preNum, i, p2); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:2945:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, " lookup '%s'", curr->name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.h:15:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf p; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featgram.c:90: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(tok, gname.text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hhea.c:401:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%d %s", caretoff, g->font.FontName.array); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:192: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(id, vend); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1382: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(dnaGROW(g->font.unenc.array[iChar], length), name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1447:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g->note.array, "<%s>", g->font.FontName.array); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1460:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(message, "<%s> ", g->font.FontName.array); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:38:13: [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. printf p; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:470:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s", hGID->gname.str); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:474:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s", hGID->gname.str); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:476:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s", hGID->srcName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:678:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(msg, "%s [%s]", msgVar, h->ps.cb.psId ? h->ps.cb.psId(h->ps.cb.ctx) : ""); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1363:13: [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(uvsEntry->gName, glyphTag); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1492: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(gn, gname); /* gname too long */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1642:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dblMap, "%s%c", gi->gname.str, AGL2UV_DBLMAP_CHAR); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:2209: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(uve->gName, finalName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:312:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "Version %.3f;%s %ld.%ld.%ld", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:317:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "Version %.3f;%s %ld.%ld.%ld;%s", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:610:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(Full, "%s %s", Family, Subfamily); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:829:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(Full, "%s %s", Family, Subfamily); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:885:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(Full, "%s %s", Family, Subfamily); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:801:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&text[strlen(text)], " [%s]", h->cb.psId(h->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:823:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&text[strlen(text)], " [%s]", h->cb.psId(h->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:374:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(text, "--- Source font: %s", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:715:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(id, "<%s>", sindexGetString(h->g, (SID)h->id)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:770:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(id, "<%s>", sindexGetString(h->g, (SID)h->id)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:402:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(text, "--- duplicate FontName: %s, files:", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:481:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(call, "/%s %ld StartData ", h->FontSet.name, h->FontSet.size); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:483:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(call, "/%s %ld /%s StartData ", data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:486:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(wrapHeader, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:511: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(wrapTrailer, buf); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1067:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&text[strlen(text)], " [%s]", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1088:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&text[strlen(text)], " [%s]", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1108:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&text[strlen(text)], " [%s]", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1162: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(dst, src); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:216: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(*dst, src); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:459:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s%s%s", h->feat.includeDir[0], sep(), "fontinfo.plist"); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:461:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s%s..%s%s", h->feat.includeDir[0], sep(), sep(), filename); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:467:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s%s%s", h->feat.includeDir[0], sep(), filename); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:475:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s%s%s", h->feat.includeDir[1], sep(), filename); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:483:13: [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 *)path, filename); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:718:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "Saving temp CFF file to: %s%s", h->tmp.file.name, ".cff"); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:721:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%s%s", h->tmp.file.name, ".cff"); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1436:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cmappath, "%s%s", h->dir.cmap, cmapfile); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1500: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(dnaGROW(h->tmpbuf, length), FontName); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1528:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(otfpath, "%s%s.otf", h->dir.otf, h->tmpbuf.array); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1530:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(otfpath, "%s%s.otf", h->dir.otf, FontName); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1580: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(reg, regCoords); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1589: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(inst, instanceName); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1635:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, stylestring); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1754:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pfbpath, "%s%s", h->dir.pfb, pfbfile); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1842:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(otfpath, "%s%s", h->dir.otf, otffile); data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:222:21: [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(dnaEXTEND(h->FontNames, iKey + 1), key); data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstdio.h:21:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define fprintf os_fprintf data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstdio.h:22:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vfprintf os_fprintf /* xxx this could be a problem */ data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h:22: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). #define strcpy os_strcpy data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:282:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dst, "%s%s", src, sep()); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:233:17: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(h->top->Notice.ptr, mergeInfo->cidinfo.Trademark); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1013:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->file.src, "%s/", h->file.sr); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1018:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/%s", h->file.sd, srcname); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1020: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(p, srcname); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1256:21: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mergeInfo->cidinfo.AdobeCopyright, buf); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1267: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(mergeInfo->cidinfo.CIDFontName, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1269: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(mergeInfo->cidinfo.FullName, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1271: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(mergeInfo->cidinfo.FamilyName, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1273: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(mergeInfo->cidinfo.Weight, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1275:17: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(mergeInfo->cidinfo.AdobeCopyright, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1277: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(mergeInfo->cidinfo.Trademark, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1290: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(mergeInfo->cidinfo.Registry, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1292: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(mergeInfo->cidinfo.Ordering, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1480:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(p, srcname); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1825:25: [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(h->file.src, dstPath); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1826:25: [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(h->file.dst, dstPath); data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:531:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define FPRINTF_S fprintf data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:534:20: [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. #define VFPRINTF_S vfprintf data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:537:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. #define SPRINTF_S(b, l, f, ...) sprintf(b, f, ##__VA_ARGS__) data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:540:20: [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. #define VSPRINTF_S vsnprintf data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:543:18: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #define SSCANF_S sscanf data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:546:28: [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). #define STRCPY_S(d, ds, s) strcpy(d, s) data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:552:28: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). #define STRCAT_S(d, ds, s) strcat(d, s) data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1073:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%sU+%04lX", sep, enc->code); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1075:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%sU+%lX", sep, enc->code); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1077:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%sx%02lX", sep, enc->code); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1137:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tag, "%hu,%s", info->tag, makeEncStr(h, enc, info)); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1138:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gname, "%s", info->gname.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1274:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(version, format, h->top->version.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1344:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "Date: %s", h->date); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1350:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "Time: %s", h->time); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:412:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmpBuf, "%s", CTL_SPLIT_VERSION(version_buf, SVW_VERSION)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1601:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%.*s%s", data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1604:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s", FontName, coords); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2131:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s.%d", gname, gid); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2135:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s.%d.%d", gname, gid, matches++); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:19:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:41:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:233:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", h->file.src, cb->clientFileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:273:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", h->file.dst, cb->clientFileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:537:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->file.dst, "%s/%s", h->file.dd, filename); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:539: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(h->file.dst, filename); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:551: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(buf, (p == NULL) ? h->file.src : p + 1); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:562:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->file.dst, "%s/%s.%s", h->file.dd, filename, h->modename); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:564:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->file.dst, "%s.%s", filename, h->modename); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:1330:13: [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(dnaEXTEND(h->subset.args, (long)strlen(buf) + 1), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2147: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(info->gname.ptr, gname); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2778:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", h->file.dst, h->ufr.altLayerDir); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2780:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", h->file.dst, "glyphs"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2859:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(h->dst.stm.fp, fmt, ap); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2868:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(h->dst.stm.fp, fmt, ap); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2886:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(h->dst.stm.fp, fmt, ap); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2898:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(h->dst.stm.fp, fmt, ap); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5456:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempFileName, "%s/glyphs/contents.plist", h->file.src); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:898: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(value, oldString); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:954:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newString, "%s%s%s", keyValue, "Copyright", copySymbol + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:962:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newString, "%s.%s", keyValue, top->version.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:972:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newString, "%s.%s", top->version.ptr, keyValue); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1136:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newGLIFRec->glifFileName, "%s", fileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1176:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(glifRec->altLayerGlifFileName, "%s", fileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1373: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(clientFilePath, h->altLayerDir); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1376: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(clientFilePath, h->defaultLayerDir); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1538:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(glifRec->glifFilePath, "%s/%s", h->altLayerDir, glifRec->altLayerGlifFileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1550:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(glifRec->glifFilePath, "%s/%s", h->defaultLayerDir, glifRec->glifFileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:2632:13: [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(pointName, tk->val); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:2962:13: [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(pointName, tk->val); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:3045: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(pointName, tk->val); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:350:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s/%s", h->arg.glyphLayer, "contents.plist"); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:363:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<key>%s</key>", glyphRec->glyphName); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:365:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", glyphRec->glifFileName); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:397:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s", "lib.plist"); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:412:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t\t<string>%s</string>", glyphRec->glyphName); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:421:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", h->top->cid.CIDFontName.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:424:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", h->top->cid.Registry.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:427:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", h->top->cid.Ordering.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:458:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s", "metainfo.plist"); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:496: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(dst, p); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:560:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "%s", "fontinfo.plist"); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:576:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", top->cid.CIDFontName.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:580:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", buffer2); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:585:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", fontDict0->FontName.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:589:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", buffer2); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:595:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", top->FamilyName.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:605:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<integer>%s</integer>", buffer2); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:609:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<integer>%s</integer>", buffer2); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:616:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<integer>%s</integer>", buffer2); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:620:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<integer>%s</integer>", buffer2); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:627:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", top->Copyright.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:633:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", top->Notice.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:656:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", top->FullName.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:662:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<string>%s</string>", top->Weight.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:808:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer, "\t<real>%s</real>", valueBuffer); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:972:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(glyphName, "%s", info->gname.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:973:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(glifName, "%s", info->gname.ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:986:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(glifRelPath, "%s/%s", h->arg.glyphLayer, glifName); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:1014: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(glyphRec->glyphName, glyphName); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:1015: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(glyphRec->glifFileName, glifName); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1139:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->file.src, "%s/", h->file.sr); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1144:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/%s", h->file.sd, srcname); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1146: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(p, srcname); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1401: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(rotateInfo->rtFile, argv[++i]); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.h:57:40: [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. if (level >= (l) && level < 5) printf p; \ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.h:72:27: [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. if (level >= (l)) printf p; \ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:27:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%s\\%s", sourcepath, source); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:174:13: [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(fil1, filename1); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:175:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil1, sysPathSep); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:176:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil1, SimpleNameList[nn]); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:178:13: [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(fil2, filename2); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:179:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil2, sysPathSep); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:180:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil2, SimpleNameList[nn]); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:214: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(fil2, filename2); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:215:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil2, sysPathSep); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:218:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil2, filename1); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dmain.c:220:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(fil2, ++c); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:16:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int fprintf(FILE *stream, const char *format, ...); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:17:12: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int sscanf(const char *s, const char *format, ...); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:62:5: [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. printf(fmt, arg); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:67:5: [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. printf(fmt, optarg, arg); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:171:25: [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(&arg[plen], &arg[strlen(opt->name)]); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:246:17: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(s, f, &value) != 1) \ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dpriv.c:24:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dpriv.c:35:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dpriv.c:43:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dpriv.c:54:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:357: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(arg, actualarg); /* otherwise "actualarg" (argv[*]) gets trounced */ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:381: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(arg, actualarg); /* otherwise "actualarg" (argv[*]) gets trounced */ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:152:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(file, FILESTR_BUF_SIZE, *p, filename); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:187:5: [4] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. lstrcpy(path, dirName); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:215:13: [4] (buffer) lstrcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. lstrcpy((*fileNameList)[i], name); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:245: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((*fileNameList)[i], entp->d_name); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Efile.c:67:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(Wfnam, "%s%d", filename, try ++); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eglobal.c:30:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eglobal.c:48:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eglobal.c:60:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Eglobal.c:71:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.c:92:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(file, FILESTR_BUF_SIZE, *p, filename); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:163:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%s", source); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:165:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%s\\%s", sourcepath, source); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:815:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s.%s", p, tag); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:817:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%.*s.%s", (int)(q - p), p, tag); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:575:13: [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(psname, infilename + loc + 1); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:588:13: [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(str2, psname + i + 1); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1324: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(list[i].name, name); data/afdko-3.5.1+dfsg1/c/spot/source/GDEF.c:221: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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GDEF.c:272: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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1266:13: [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(name, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1324:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1379:13: [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(name, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1446:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1591: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(nam1, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1598:13: [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(nam2, getGlyphName(pv->SecondGlyph, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1746:13: [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(nam1, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1751: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(nam2, getGlyphName(pv->SecondGlyph, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1853: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(nam1, getGlyphName(g1, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1864: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(nam2, getGlyphName(g2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1999:21: [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(nam1, getGlyphName(c1, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2020:21: [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(nam1, getGlyphName(g1, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2033:21: [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(nam2, getGlyphName(g2, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2117: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(nam1, getGlyphName(c1, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2126:25: [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(nam2, getGlyphName(g2, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2182: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(nam1, getGlyphName(g1, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2192:25: [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(nam2, getGlyphName(g2, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2433:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2592:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2613:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2750:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2771:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2914:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3016:13: [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(name1, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3108:21: [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(name2, getGlyphName(glyphId2, forProofing)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3118:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&proofString[psIndex], " %s", name2); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3137:25: [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(name2, getGlyphName(glyphId2, forProofing)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3147:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&proofString[psIndex], " %s", name2); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3204: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(name1, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3250:25: [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(name2, getGlyphName(glyphId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3298:29: [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(oname, getGlyphName(ogid, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3825:13: [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(name1, getGlyphName(gId1, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3867:13: [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(name1, getGlyphName(gId1, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3914:13: [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(name1, getGlyphName(gId1, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3998:13: [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(name1, getGlyphName(gId1, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4008:21: [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(name2, getGlyphName(gId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4234:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(AFMout, kScriptLabel " %c%c%c%c Language %c%c%c%c\n", TAG_ARG(scripttag), TAG_ARG(langtag)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4669:13: [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(afmFilePath, fileName()); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4717:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(kernEntry->kernPair, "%s %s %s", prefix, name1, name2); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1007: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(name, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1033: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(name2, getGlyphName(glyphId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1069:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1073:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1104: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(name, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1129: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(name2, getGlyphName(glyphId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1167:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1171:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1256: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(name, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1277:13: [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(name2, getGlyphName(glyphId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1388: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(name, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1411:13: [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(name2, getGlyphName(glyphId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1520: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(name1, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1535:13: [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(ligname, getGlyphName(ligId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1548: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(name2, getGlyphName(ligature->Component[k], 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1607:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1761:13: [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(name1, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1786:13: [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(name, getGlyphName(glyphId, 0)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1926:21: [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(name2, getGlyphName(glyphId2, forProofing)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1928:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&proofString[psIndex], " %s", name2); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1947:25: [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(name2, getGlyphName(glyphId2, forProofing)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1957:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(&proofString[psIndex], " %s", name2); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2011: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(name1, getGlyphName(glyphId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2057:25: [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(name2, getGlyphName(glyphId2, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2106:29: [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(oname, getGlyphName(ogid, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2693:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2735:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2782:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2841:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2906: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(oname, getGlyphName(ogid, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2991:21: [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(oname, getGlyphName(ogid, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3035:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3301:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3343:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3389:13: [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(name, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3432: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(oname, getGlyphName(gId, 1)); data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c:609:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(title, "cmap:subtable index %d,%s,%s,%s", i, data/afdko-3.5.1+dfsg1/c/spot/source/global.c:42:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:57:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:70:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:82:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(OUTPUTBUFF, fmt, ap); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:101:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/afdko-3.5.1+dfsg1/c/spot/source/global.h:61:25: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if (level == 5) fprintf p; \ data/afdko-3.5.1+dfsg1/c/spot/source/global.h:65:40: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if (level >= (l) && level < 5) fprintf p; \ data/afdko-3.5.1+dfsg1/c/spot/source/global.h:81:23: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int ret = fprintf p; \ data/afdko-3.5.1+dfsg1/c/spot/source/global.h:150:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int fprintf(FILE *stream, const char *format, ...); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:59:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%s", source); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:61:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dest, "%s\\%s", sourcepath, source); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:805: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(scriptfilename, argv[i + 1]); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:47:17: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. value = fscanf(file, "%s %s", temp1, temp2); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:66:9: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. fscanf(file, "%s %s\n", oldname, nicename); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:18:12: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int fprintf(FILE *stream, const char *format, ...); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:19:12: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. extern int sscanf(const char *s, const char *format, ...); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:64:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(OUTPUTBUFF, fmt, arg); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:175:25: [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(&arg[plen], &arg[strlen(opt->name)]); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:250:17: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (sscanf(s, f, &value) != 1) \ data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:36:12: [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. extern int system(const char *command); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:38:14: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). extern char *mktemp(char *template); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:203:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "%%%%Page: body %d %s", ctx->page + 1, platformProlog); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:219:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "%% ================= %s ==============\n", ctx->title); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:255:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave TITL setfont %g %g _MT (%s) show %g %g _MT (%s) show %g %g _MT (page %d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:440:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(psstr, " gsave /Courier-Bold findfont 12 scalefont setfont -90 rotate (%s) show grestore ", str); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:447:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(psstr, " gsave /Courier-Bold findfont 12 scalefont setfont -90 rotate (%s) show grestore ", str); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:457:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(psstr, " gsave /Courier-Bold findfont 12 scalefont setfont -90 rotate (%s) show grestore ", str); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:466:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(psstr, " gsave /Courier-Bold findfont 12 scalefont setfont (%s) show grestore ", str); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:480:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(temp, &str[nPos]); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:483:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(psstr, " gsave /Courier-Bold findfont 12 scalefont setfont (%s) show grestore ", temp); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:582:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "\ngsave %%glyph %d (%s)\ncurrentpoint translate %g dup scale\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:645:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cmd, "lpr -r %s \n", proofFileName(*ctxptr)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:647:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(cmd); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:870:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ctx->title, fmt1, data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:874:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ctx->title, fmt2, data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:893:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(ctx->title2, fmt3, (pageTitle) ? pageTitle : ""); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:953:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s_%s.ps", outputfilebase, PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:955:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "OTFproof_%s.ps", PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:958:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s_%s%d.ps", outputfilebase, PSFilenameorPATTorNULL, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:960:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "OTFproof_%s%d.ps", PSFilenameorPATTorNULL, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:965:21: [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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:969:21: [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(tempname, PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:971:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s%d", PSFilenameorPATTorNULL, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:976:21: [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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:982:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s.ps", outputfilebase); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:987:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s.ps%d", outputfilebase, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:994: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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1006:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tytl, "OTFproof %s [%s]", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1034:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s_%s.ps", outputfilebase, PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1036:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "OTFproof_%s.ps", PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1040:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s_%s%d.ps", outputfilebase, PSFilenameorPATTorNULL, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1042:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "OTFproof_%s%d.ps", PSFilenameorPATTorNULL, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1047:21: [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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1053:21: [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(ctx->psfilename, PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1061:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s.ps", outputfilebase); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1066:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "%s%d.ps", outputfilebase, retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1073: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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1089:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "/tmp/%s_%s_XXXXXX", global.progname, PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1090:21: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1093:21: [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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1100:21: [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(ctx->psfilename, PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1107:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tempname, "/tmp/%s.ps_XXXXXX", global.progname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1108:17: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1111: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(ctx->psfilename, tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1256:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g %g _MT (%d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1262:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g %g _MT (%d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1268:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g %g _MT (%d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1285:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT (%d) show grestore grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1330:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g %d _MT (%d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1337:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g %g _MT (%d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1344:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %s setfont %g %g _MT (%d) show grestore\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1474:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1478:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave 0 %g _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1482:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1486:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave 0 %g _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1490:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1494:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave 0 %g _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1500:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "(%s %s)\n", glyphname, message); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1502:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "(%s@%d %s)\n", glyphname, glyphId, message); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1520:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1524:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave 0 %g _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1529:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1533:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave 0 %g _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1538:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave %g 0 _MT currentpoint gsave translate 90 rotate 0 0 _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1542:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "gsave 0 %g _MT %s setfont ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1547:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(g_str, "(%s) show grestore\n", altlabel); data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:349: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(arg, actualarg); /* otherwise "actualarg" (argv[*]) gets trounced */ data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:524: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(arg, actualarg); /* otherwise "actualarg" (argv[*]) gets trounced */ data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:391: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(filename, defaultname); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:396:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filename, "%s%d", defaultname, i); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:401: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(OUTfilename, filename); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:409: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((char *)deflt, defaultname); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:433: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((char *)deflt, defaultname); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:447:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((char *)deflt, "%s%d", defaultname, retries); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:467: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((char *)deflt, defaultname); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:531:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(file, *p, filename); data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:378:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(h->file.src, "%s/", h->file.sr); data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:383:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p, "%s/%s", h->file.sd, srcname); data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:385: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(p, srcname); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:24:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:397:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(prefix, "%d %s ", len + lenIV, RD); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:405:17: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(prefix, "%d %s ", len, RD); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:527:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt(int argc, char **argv, char *optstring); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:536:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int argc, char **argv, char *opstring) { data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:581:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "h")) != EOF) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:329:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *fsType = getenv(kFSTypeEnviron); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:2423:17: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(0); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:694:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand((unsigned)(now * now)); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1960:17: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(0); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:495:26: [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. do_debug_sleep = getenv("STOP_GLYPH_PROOFER"); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:723:26: [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. do_debug_sleep = getenv("STOP_OTFPROOF_FOR_GDB"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:37:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv(const char *name); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:646:46: [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. inform(SPOT_MSG_prufSPOOLTO, getenv("PRINTER")); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:945:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if (getenv("spotusestdout") != NULL) { data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1025:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. } else if (getenv("spotusestdout") != NULL) { data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1082:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. } else if (getenv("spotusestdout") != NULL) { data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:1202:17: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(0); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:507:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt(int argc, char **argv, char *optstring); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:516:5: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int getopt(int argc, char **argv, char *opstring) { data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:561:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt(argc, argv, "h")) != EOF) data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:137:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). end = &s[atoi((const char *)prefix)]; data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:212: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). g_lenIV = atoi((const char *)++s); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:597:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(argv[optind], "rb"); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:609:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp1 = fopen(argv[optind], "rb"); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:615:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp2 = fopen(argv[optind + 1], "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/api/cffread.h:339:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void (*hintmask)(void *ctx, int cntr, int n, char mask[CFF_MAX_MASK_BYTES]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/api/hotconv.h:432:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char *hotEncoding[256]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:142:21: [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(StripQuotes(fname), "r"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:406:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int go=1; char name[MaxRuleName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:869: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(CurPredName,"#pred "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:1556:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tnum = atoi(LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2894:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(eh->signalname, "default"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3162: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). v = atoi(LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3223:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). v=atoi(LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3287:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). v=atoi(LATEXT(1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1041:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1072:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1120:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1140:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1158:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1231:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1251:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1303:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1349:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset.c:1378:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ftbl[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/fset2.c:1473:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. for (i=1; i<=CLL_k; i++) free( (char *)ft[i] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:1819: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 stringizeBuf[STRINGIZEBUFSIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2292:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[MaxRuleName+20]; /* MR23 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2293:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char bufErrSet[MaxRuleName+20]; /* MR23 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2315:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[MaxRuleName+20]; /* MR23 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2316:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char bufErrSet[MaxRuleName+20]; /* MR23 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2334:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[sizeof("zzerr")+10]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2335:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char bufErrSet[sizeof("zzerr")+10]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2338:17: [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. if ( GenCC ) sprintf(buf, "err%d", n); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2339:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. else sprintf(buf, "zzerr%d", n); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2340:17: [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. if ( GenCC ) sprintf(bufErrSet, "err%d", nErrSet); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:2341:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. else sprintf(bufErrSet, "zzerr%d", nErrSet); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:3379:22: [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). /* MR6 */ output = fopen(OutMetaName(outname(FileStr[q->file])), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:4357:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:4368:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "err%d", n); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:4370:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "zzerr%d", n); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/globals.c:313:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *FileStr[MaxNumFiles];/* Ptr to array of file names on command-line */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/globals.c:395:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Parser_h_Name[MaxFileName+1] = ""; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/globals.c:396:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Parser_c_Name[MaxFileName+1] = ""; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/globals.c:397:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char MRinfoFile_Name[MaxFileName+1] = ""; /* MR10 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/globals.c:404:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CurrentClassName[MaxRuleName]=""; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:53:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *dlgFile = fopen(OutMetaName(DlgFileName), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:232:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char dirSym[2] = DirectorySymbol; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:259:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). DefFile = fopen(OutMetaName(DefFileName), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:358: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(OutMetaName(RemapFileName), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:135:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char Fn_in_Fl[MaxFLArea] = ""; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:136:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char one_fn[MaxFileName]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:147:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fl = fopen(t, "r")) == NULL) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:180:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). LL_k = atoi(t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:196:10: [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). CLL_k = atoi(t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:212:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). TabWidth = atoi(t); /* MR6 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:231:19: [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). MR_AmbAidDepth = atoi(t); /* MR11 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:243:26: [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). TnodesReportThreshold = atoi(t); /* MR11 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:487:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). TreeResourceLimit = atoi(t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:734:46: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (MR_AmbAidRule != NULL) MR_AmbAidLine=atoi(MR_AmbAidRule); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:783:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(OutMetaName(stdpccts), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:814:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ErrFile = fopen(OutMetaName(ErrFileName), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:828:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Parser_h_Name, ".h"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:832:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Parser_h = fopen(OutMetaName(Parser_h_Name), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:837:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). Parser_c = fopen(OutMetaName(Parser_c_Name), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1094: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(FileStr[CurFile], "r"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1152:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1229:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[250]; /* DANGEROUS as hell !!!!!! */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1245:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[250]; /* DANGEROUS as hell !!!!!! */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1261:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[250]; /* DANGEROUS as hell !!!!!! */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1301:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char imag_name[20]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1312:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(imag_name,"UnknownToken#%d",token); /* MR13 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1515: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 newname[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1547: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 newname[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1724:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1744:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1746:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "_blk%d_alt%d", blockid, altnum); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:99: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. lclass[i].exprs = (char **) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:100:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. realloc((char *)lclass[i].exprs, tsize*sizeof(char *)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:693:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char key[MaxRuleName+2+2+1]; /* MR10 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:943:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. free( (char *)Cycles[k] ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:1679: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 strBetweenWorkArea[MAX_STR_BETWEEN_WORK_AREA]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mrhoist.c:2204: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 ruleNameStatic1[ruleNameMax]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mrhoist.c:2205: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 ruleNameStatic2[ruleNameMax+10]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/pred.c:86:10: [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). k = atoi(p+strlen("LT(")); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/pred.c:103:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). k = atoi(p); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:238:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). zzline = atoi(zzbegexpr+5) - 1; zzline++; zzmore(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:552:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift0[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:625:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift1[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:698:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift2[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:764:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift3[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:827:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift4[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:891:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift5[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:940:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift6[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:989:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift7[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1038:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift8[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1101:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift9[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1283: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 buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1287:16: [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). set_orel(atoi(zzbegexpr+1), &attribsRefdFromAction); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1305: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 buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1310:16: [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). set_orel(atoi(zzbegexpr+1), &attribsRefdFromAction); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1328: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 buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1329: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 i[20], j[20]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1361: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 buf[300]; LabelEntry *el; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1439: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 buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1446:16: [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). set_orel(atoi(zzbegexpr+1), &AST_nodes_refd_in_actions); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1456:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). zzline = atoi(zzbegexpr+5) - 1; zzline++; zzmore(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1486: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 buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1672:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift10[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1839:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift11[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:59:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char theClassName[100]; /* MR11 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:320:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift0[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:424:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift1[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:481:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift2[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_a.c:531:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift3[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/main.c:35:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *file_str[2] = {NULL, NULL}; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:80: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 *mode_name[MAX_MODES]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:103:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *typevar[DIF_SIZE] = { t0, t1, t2, t3}; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:110:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *typevar[DIF_SIZE] = { t0, t1, t2, t3}; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:124:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:712:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[200]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:111:8: [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(name, "r"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:140:8: [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(OutMetaName(name), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:216: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 newname[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:253: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[2000]; /* MR20 Was "static" */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:254:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "The minimum number of tokens you requested that the\nANTLRTokenBuffer buffer is not enough to satisfy your\nLT(%d) request; increase 'k' argument to constructor for ANTLRTokenBuffer\n", i); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.h:151:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char eMsgBuffer[500]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:112: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 object[200]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:135:15: [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. if ( t==1 ) sprintf(object,"tok_EOF"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:147:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(object,"tok_blank"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/ATokenBuffer.cpp:44:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char test[1000]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLexer.h:58: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((char *)ebuf,"Invalid automaton mode = %d ",m); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PBlackBox.h:104:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(fname, "r"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:570:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ebuf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:581: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). label = atoi(parser->lexer->text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:593:28: [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). ScanAST *p = new_scanast(atoi(parser->lexer->text)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:638: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 ebuf[100]; /* MR23 Remove static */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.cpp:662:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ebuf, "invalid char in scan: '%c'", scanner->c); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/PCCTSAST.h:52:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[StringScanMaxText]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h:225:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char textLA[LL_K][ZZLEXBUFSIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h:230:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[ZZLEXBUFSIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h:423:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. {static char zztoktext[ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h:426:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. {static char zztoktext[ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/antlr.h:429:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. {static char zztoktext[ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charbuf.h:41:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct { char text[D_TextSize]; } Attrib; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/dlgauto.h:72: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 zzebuf[70]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/dlgauto.h:267: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(zzebuf,"Invalid automaton mode = %d ",m); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:164:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char text[LL_K*ZZLEXBUFSIZE+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:167:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char text[ZZLEXBUFSIZE+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:824:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (LA(1)==zzEOF_TOKEN)?"<eof>":(char *)LATEXT(1), data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:870:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (LA(1)==zzEOF_TOKEN)?"<eof>":(char *)LATEXT(1), data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:922: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 zzmbuf[70]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:933:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(zzmbuf, "Mode stack overflow "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:949:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. { sprintf(zzmbuf, "Mode stack underflow "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:968: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(modeStack, zzmstk, sizeof(zzmstk)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/int.h:35:35: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). #define zzcr_attr(a,tok,t) *(a) = atol(t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:37: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 CPPParser_h_Name[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:40:2: [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(CPPParser_h_Name, ".h"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:41:13: [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). Parser_h = fopen(OutMetaName(CPPParser_h_Name), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:116: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 CPPParser_C_Name[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/cpp.c:121:13: [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). Parser_c = fopen(OutMetaName(CPPParser_C_Name), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/err.c:28: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. int token; char text[MaxAtom+1], label[MaxRuleName+1]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/gen.c:118: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 CPPParser_h_Name[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/gen.c:131:2: [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(CPPParser_h_Name, ".h"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/gen.c:298:13: [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). output = fopen(OutMetaName(outname(FileStr[t->file])), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/gen.c:1204: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(def_token_file, "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c:34:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *FileStr[MaxNumFiles];/* Ptr to array of file names on command-line */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c:56:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char translator[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c:57:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tokdefs_file[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c:76:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CurRefVarType[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c:77:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CurRefVarLabel[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/globals.c:78:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CurClassName[MaxAtom+1]=""; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:57:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[StringScanMaxText]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:716:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ebuf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:727: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). label = atoi(parser->lexer->text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:739:28: [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). ScanAST *p = new_scanast(atoi(parser->lexer->text)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:806:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ebuf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/astlib.c:830:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ebuf, "invalid char in ast_scan: '%c'", scanner->c); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:351:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ProtoFILE = fopen(OutMetaName(GenProtoFile), "w"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:376:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[MaxRuleName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:403: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(FileStr[CurFile], "r"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:491:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[250]; /* DANGEROUS as hell !!!!!! */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:506:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[250]; /* DANGEROUS as hell !!!!!! */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:679:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:689:7: [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. else strcat(buf, ".c"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:731: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 newname[MaxFileName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:996:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char id[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1068: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 tname[MaxRuleName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1069: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 duh[MaxRuleName+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1070:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char call[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1104:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(duh, "%d", q->token_type); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:27: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. int token; char text[MaxAtom+1], label[MaxRuleName+1]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:87: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 func_call_str[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:325:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift0[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:391:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift1[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:457:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift2[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:523:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift3[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:586:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift4[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:635:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift5[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:684:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift6[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:747:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift7[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:797:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift8[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:909: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 buf[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:918:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf, "(*_result)"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:1127:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift9[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:1190:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift10[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:1239:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift11[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:1398:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift12[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:28: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. int token; char text[MaxAtom+1], label[MaxRuleName+1]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:376:9: [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(tokdefs_file, "r"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1640:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). p->token_type = atoi(zzaArg(zztasp2,3 ).text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1719:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). v=atoi(zzaArg(zztasp2,2 ).text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1818:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). v=atoi(zzaArg(zztasp4,2 ).text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:95:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char decl[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:96:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char var[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.h:97:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char init[MaxAtom+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/stdpccts.h:30: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. int token; char text[MaxAtom+1], label[MaxRuleName+1]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test6.c:17: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 text[50]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/test/test7/stdpccts.h:16:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. #define AST_FIELDS char text[AtomSize+1]; int token; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/testcpp/test4/AST.h:11: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 text[AtomSize+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:38:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ATOKENBUFFER_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:39:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char APARSER_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:40:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ASTBASE_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:41:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PCCTSAST_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:42:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char LIST_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:43:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char DLEXERBASE_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:265:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1000+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:745:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[200+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:42:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ATOKENBUFFER_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:43:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char APARSER_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:44:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ASTBASE_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:45:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PCCTSAST_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:46:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char LIST_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:47:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char DLEXERBASE_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:51:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *cfiles[MAX_CFILES]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:52:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *sfiles[MAX_SORS][MAX_SFILES],*sclasses[MAX_SORS]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:434:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1000+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:1058:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[200+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:38:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ATOKENBUFFER_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:39:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char APARSER_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:40:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ASTBASE_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:41:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PCCTSAST_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:42:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char LIST_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:43:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char DLEXERBASE_O[100]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:56: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 cfiles[1600]=""; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:304:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1000+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:757:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[200+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/rexpr/rexpr.c:253: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 s[257]; /* alloc space for string of char in [] */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/rexpr/rexpr.c:335:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char set[256]; /* no duplicates */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/set/set.c:521:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char str_tmp[StrSize+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:1351:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mask[CFF_MAX_MASK_BYTES]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:1414:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(®[j], &h->BCA.array[i], sizeof(Fixed) * count); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:1452:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h->BCA.array[i], reg, sizeof(Fixed) * count); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:1716:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:2527:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->UDV, UDV, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:2544:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->WV, WV, sizeof(cffFixed) * ((nMasters > TX_MAX_MASTERS) ? TX_MAX_MASTERS : nMasters)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:32:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id_text[ID_TEXT_SIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:51:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char params[1]; /* A place holder */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:1847:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:1939:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:2953:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g->error_id_text, "feature '%c%c%c%c'", TAG_ARG(si->parentFeatTag)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3623:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3661:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3704:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3730:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3952:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:3977:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:4225:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GPOS.c:4424:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GSUB.c:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id_text[ID_TEXT_SIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/GSUB.c:2330:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g->error_id_text, "feature '%c%c%c%c'", TAG_ARG(si->parentFeatTag)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:45:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char panose[PANOSE_SIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char achVendId[VEND_ID_SIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char seen[kFieldCount]; /* Flags keys seen */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:182:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FullName[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:331:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). h->tbl.fsType = atoi(fsType); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:519:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->tbl.panose, panose, PANOSE_SIZE); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:303:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tagString[4] = {TAG_ARG(tag)}; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:463:29: [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(dupeMsg, "[STAT] AxisValueTable already defined with locations: "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:465:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char axisMsg[20]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:466:33: [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(axisMsg, "%c%c%c%c %.2f ", TAG_ARG(axisTags[j]), FIX2DBL(values[j])); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zztextLA[LL_K][ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:166:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char textLA[LL_K][ZZLEXBUFSIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:171:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[ZZLEXBUFSIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:420:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char zztoktext[ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:427:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char zztoktext[ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/antlr.h:434:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char zztoktext[ZZLEXBUFSIZE]; \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/cmap.c:50: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 glyphId[256]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/cmap.c:290:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgVar[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/cmap.c:291:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/common.h:105:23: [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 COPY(d, s, n) memcpy(d, s, sizeof((s)[0]) * (n)) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/common.h:232:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char PS[32]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/common.h:387:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_id_text[ID_TEXT_SIZE]; /* buffer for text identifying class and feature of error */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/common.h:413:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. char *bcopy(const void *src, void *dst, int len); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/common.h:415:26: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memmove(d, s, l) bcopy(s, d, l) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/dlgauto.h:75: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 zzebuf[70]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/dlgauto.h:272:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(zzebuf, "Invalid automaton mode = %d ", m); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:167: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 text[LL_K * ZZLEXBUFSIZE + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:170: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 text[ZZLEXBUFSIZE + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:895: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 zzmbuf[70]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:906:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(zzmbuf, "Mode stack overflow "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:922:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(zzmbuf, "Mode stack underflow "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:940:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(modeStack, zzmstk, sizeof(zzmstk)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:159:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char anchorName[64]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:167:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char valueName[64]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:310:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[512]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:313:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(msg, "\\%hd", mapGID2CID(gid)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:446:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:458:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgVar[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:459:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:999:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char quoteChar[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1007:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(quoteChar, "\"%c\"", *(t + 1)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1010:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(quoteChar, "\"%c\"", *t); /* Single quote other punctuation */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1054:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[MAX_PATH]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1866:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_NUM_LEN + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1876:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gname[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1893:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gname[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1900:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmt[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1901:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char preNum[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:2938:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g->error_id_text, "standalone"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:2940:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g->error_id_text, "feature '%c%c%c%c'", TAG_ARG(h->curr.feature)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featerr.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featgram.c:39:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featgram.c:166:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char p[MAX_TOKEN], q[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featgram.c:4391:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char panose[10]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:38:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[MAX_TOKEN]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:627:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift0[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:695:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift1[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:749:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift2[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:807:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift3[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:863:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift4[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:920:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift5[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:978:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift6[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/featscan.c:1035:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char shift7[257] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/head.c:20:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char longDateTime[DATE_TIME_SIZE]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hhea.c:360:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:415:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g->font.version.PS, "%g", fi->cid.version); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:425:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(g->font.version.PS, "(version unavailable)"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1086:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char next[5][6] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1104:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char action[5][6] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1219:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char next[3][6] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1235:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char action[3][6] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1454:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[MAX_NOTE_LEN + 1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1698:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 void hintmask(void *ctx, int cntr, int n, char mask[CFF_MAX_MASK_BYTES]) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:49:35: [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. #define MAKE_UNI_GLYPH(uv, gname) sprintf(gname, "uni%04X", uv) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:242:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gName[64]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:672:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msgVar[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:673:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[2048]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:687:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char p[512]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:692:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, psGetValue(ps, token), token->length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:731:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:978:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempString[256]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:979:17: [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((char *)&tempString, " lo <%d> hi <%d> cid <%d> item count <%d>", code, range->hi, cid, itemCount); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1209:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char next[3][4] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1221:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char action[3][4] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1274:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1359:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). uvsEntry->cid = atoi(&glyphTag[4]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1484:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gn[MAX_GNAME_LEN + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1629:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dblMap[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1630:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uni[8]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1906:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uniGN1[8]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1907:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uniGN2[8]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:255:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:458: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 *styles[4] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:461:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Full[HOT_MAX_MENU_NAME * 2]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:828:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Full[HOT_MAX_MENU_NAME * 2]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:884:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Full[HOT_MAX_MENU_NAME * 2]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:1053:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->tbl.strings, length), str, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:27: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 class[256] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:56:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char digit[256] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:145: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 c[4]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:793:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:816:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/cs.c:186:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/cs.c:354: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 *opname[32] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:14:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:16:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(*dict, length), t, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:20:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:23:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(*dict, length), t, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:41:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%g", d); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:90:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:92: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(dnaEXTEND(*dict, length), t, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/dict.c:98: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 *opname[32] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c:60: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 *std[256] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:51:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *custom[256]; /* Built-in encoded glyph names */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:331:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *glyph[257]; /* Subset glyph names (256+ 1 for .notdef) */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:368:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:385:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:401:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:420:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:627:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oldName[64]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:847:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->font->chameleon.data, &h->buf.array[index], binlen); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:85:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char HintMask[MAX_MASK_BYTES]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:94:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->cstrs, h->hint.size), a, h->hint.size) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:316:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flags[T2_MAX_OP_STACK]; /* Flags */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:374:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flag[13]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:387:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *message[WARN_COUNT]; /* Warning messages */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:706:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:719:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(id, "cid#%u", h->id); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:723:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(id, "subr#%u", h->id); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:1252: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(dnaEXTEND(h->path.idmask, idbytes), h->stem.subsmask, idbytes); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:1636:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *)subrs[isubr].cstr, h->nMasters, 1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:1640:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *)subrs[isubr].cstr, nSubrs, subrs)) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:2442:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->stem.lastmask, hintmask, h->hint.size); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:2833: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 map[T2_MAX_STEMS]; /* Stem id map (id -> index) */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3313:54: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cstrRecode(g, subrs[isubr].length, (unsigned char *)subrs[isubr].cstr, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3322:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->data, &h->cstrs.array[icstrs], length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3357:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->cstrs, chr->cstr.length), data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3404:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3468:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3491:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3493:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(*cstr, length), t, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3498:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3500:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(*cstr, length), t, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:3620: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(dnaEXTEND(cstr, (int)sizeof(CDV1Axis)), data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:4745:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fontname[32]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:4749:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fontname, "EuroMM"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:4751:17: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fontname, "FillinMM"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:4754:17: [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(fontname, "-Serif"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/recode.c:4756:17: [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(fontname, "-Sans"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/sindex.c:142: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(dnaEXTEND(h->strings, (long)length), strng, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/sindex.c:200:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 strng[101]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/sindex.c:202:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(strng, &h->strings.array[map->index], length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:266: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 opLenCache[256]; /* Cached values of t2oplen. If 0, the second byte in the charstring indicates the length */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:273: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 subrPrefixMap[SUBR_PREFIX_MAP_SIZE]; /* bit table where a bit is set when its corresponding subr 2-byte prefix selected */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:811:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(destNode->edgeTable, srcNode->edgeTable, sizeof(Edge) * srcNode->edgeTableSize); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:2406:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chars->data, h->cstrs.array, h->cstrs.cnt); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:2611:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(subrs->data, h->cstrs.array, h->cstrs.cnt); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:2690:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->data, h->cstrs.array, h->cstrs.cnt); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:2909:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char dummycstr[2] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:3168:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[16]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:3169:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%u.%u%c%d", subr->count, subr->length - subr->maskcnt, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:201:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char HintMask[MAX_MASK_BYTES]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:210:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(da_EXTEND(h->cstrs, h->hint.size), a, h->hint.size) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:352:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flags[T13_MAX_OP_STACK]; /* Flags */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:407:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flag[13]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:422:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *message[WARN_COUNT]; /* Warning messages */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:765:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char id[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:774:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(id, "cid#%hu", h->id); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:778:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(id, "subr#%hu", h->id); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:969:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst + bytes, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:1261: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(da_EXTEND(h->path.idmask, idbytes), h->stem.subsmask, idbytes); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:1578:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *)subrs[isubr].cstr, h->nMasters, 1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:1582:43: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *)subrs[isubr].cstr, nSubrs, subrs)) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:2346:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->stem.lastmask, hintmask, h->hint.size); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:2737: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 map[T13_MAX_STEMS]; /* Stem id map (id -> index) */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:3215:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:3279:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/t13supp.c:3333:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char auth[44] = { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:127:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char t[5]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:401:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:478:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char call[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:702:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char header[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:703:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char trailer[128]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1059:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1080:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1100:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[513]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1169:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, length); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:88:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:101:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:106:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *includeDir[4]; /* font dir*/ data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:108:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; /* Refill buffer for feature file */ data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:118:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:123:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:129:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:369:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->cff.next, ptr, count); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:445:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:497:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char featDir[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:546:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char featDir[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:621:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ai->data.array, data, destCnt); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:680:27: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ((h->tmp.file.fp = tmpfile()) == NULL) { data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:716:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[1024]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:722:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tmp_fp = fopen(str, "wb"); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:792: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 *msgs[fcdbErrCnt] = data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:865:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char nextFinal[3][4] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:877:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char actionFinal[3][4] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:886:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char actionDev[3][4] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1057:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[maxLineLen]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1159:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->alias.names, length), alias, length); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1162:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->alias.names, length), final, length); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1165:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->alias.names, length), uvName, length); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1434:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmappath[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1574:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inst[HOT_MAX_MENU_NAME]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1575:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reg[HOT_MAX_MENU_NAME]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1633:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[HOT_MAX_MENU_NAME]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1699:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pfbpath[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1700:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char otfpath[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1796:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char featDir[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cbpriv.c:18:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[512]; data/afdko-3.5.1+dfsg1/c/makeotf/source/cbpriv.c:31:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[512]; data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:88:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char next[10][9] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:114:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char action[10][9] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[HOT_MAX_FONT_NAME]; data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:516:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char next[8][7] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:538:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char action[8][7] = { data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:666:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char familyName[64]; data/afdko-3.5.1+dfsg1/c/makeotf/source/file.c:34:13: [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->fp = fopen(filename, mode); data/afdko-3.5.1+dfsg1/c/makeotf/source/file.c:42:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "r"); data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstdio.h:26:9: [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). #define fopen os_fopen data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h:29: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. #define memcpy(d, s, n) os_bcopy(s, d, n) data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h:40:7: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. char *bcopy(const void *src, void *dst, int len); data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h:41:26: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memmove(d, s, l) bcopy(s, d, l) data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:51:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pfb[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:52:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char otf[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:53:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmap[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:54:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char feat[FILENAME_MAX + 1]; data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:351: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). int value = atoi(argv[i]); data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:411:53: [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). convert.macScript = atoi(argv[++i]); data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:418:55: [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). convert.macLanguage = atoi(argv[++i]); data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:536:55: [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). convert.maxNumSubrs = atoi(argv[++i]); data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:573:43: [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). val = atoi(argv[++i]); data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:583:43: [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). val = atoi(argv[++i]); data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:593:43: [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). val = atoi(argv[++i]); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:29:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char srcName[MAX_PS_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:30:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dstName[MAX_PS_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:49:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FontName[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:56:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char CIDFontName[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FullName[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:58:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FamilyName[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:59:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char AdobeCopyright[MAX_COPYRIGHT_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:60:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Trademark[MAX_COPYRIGHT_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:61:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Weight[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:64:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Registry[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char Ordering[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:887:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename, "rb")) == NULL || data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:953:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE + 1]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:961:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE + 1]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:999:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (const char **)bsearch(key, options, ARRAY_LEN(options), data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1032:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->src.stm.fp = fopen(h->src.stm.filename, "rb"); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1208: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). fp = fopen(filePath, "rb"); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1228:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_DICT_ENTRY_LEN + MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1229:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1230:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1279: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). mergeInfo->cidinfo.fsType = atoi(value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1294:49: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mergeInfo->cidinfo.Supplement = atoi(value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1313:58: [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). mergeInfo->XUID.array[cnt] = atoi(startp); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1329:50: [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). mergeInfo->XUID.array[cnt] = atoi(startp); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1490:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->src.stm.fp = fopen(h->src.stm.filename, "rb"); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1565:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lineBuffer[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1566:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char progName[MAX_DICT_ENTRY_LEN]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1591:13: [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). ga_fp = fopen(filePath, "rb"); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1641:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gae->srcCID = atoi(gae->srcName); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1643:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). gae->dstCID = atoi(gae->dstName); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1827:25: [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(h->file.dst, ".temp"); data/afdko-3.5.1+dfsg1/c/public/lib/api/cfembed.h:324:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/api/cfembed.h:363:21: [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). s->fp = fopen(h->srcfile, "rb"); data/afdko-3.5.1+dfsg1/c/public/lib/api/cfembed.h:367:21: [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). s->fp = fopen(h->dstfile, "w+b"); data/afdko-3.5.1+dfsg1/c/public/lib/api/cfembed.h:371:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). s->fp = tmpfile(); data/afdko-3.5.1+dfsg1/c/public/lib/api/cfembed.h:375:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). s->fp = tmpfile(); data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:138:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void *(*open)(ctlStreamCallbacks *cb, int id, size_t size); data/afdko-3.5.1+dfsg1/c/public/lib/api/ctutil.h:58:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef unsigned char ctuLongDateTime[8]; data/afdko-3.5.1+dfsg1/c/public/lib/api/sha1.h:75:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef unsigned char sha1_hash[20]; data/afdko-3.5.1+dfsg1/c/public/lib/api/supportenvironment.h:861: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 data/afdko-3.5.1+dfsg1/c/public/lib/api/supportossyslib.h:25:9: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define bcopy(from, to, len) ((void)memmove(to, from, len)) data/afdko-3.5.1+dfsg1/c/public/lib/api/tx_shared.h:252:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; /* Buffer data */ data/afdko-3.5.1+dfsg1/c/public/lib/api/tx_shared.h:264:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; /* Buffer data */ data/afdko-3.5.1+dfsg1/c/public/lib/api/tx_shared.h:297:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char src[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/api/tx_shared.h:298:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dst[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_afm.c:36:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_text[32]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c:85:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char datestr[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timestr[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c:607:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c:671:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gname[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c:692:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tag[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_draw.c:694:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hAdv[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:423:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:461:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:482:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:493:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:507:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:523:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:569:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:672:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[80]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:295:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, CEF_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:300:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, CEF_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:356: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 buf[2]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:366: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 buf[4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:393:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 h->cb.stm.open(&h->cb.stm, CEF_TMP0_STREAM_ID, size); data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:396:30: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 h->cb.stm.open(&h->cb.stm, CEF_TMP1_STREAM_ID, size); data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:447:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reserved1[16]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:469:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dataOffset[3]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:45: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 *applestd[258] = data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:225:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:343:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, CFR_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:481: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(ptr, h->src.next, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:491:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, h->src.next, count); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:531:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, CFR_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:671:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->top.cid.FontMatrix.array, array, 6 * sizeof(float)); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:691:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, array, 6 * sizeof(float)); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:735:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1935:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p, ".notdef"); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1941:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p, "gid%05ld", i); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:2483:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefixBuffer[LONG_PS_NAME_LIMIT + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:2508:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char postscriptName[LONG_PS_NAME_LIMIT + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:2509:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringBuffer1[STRING_BUFFER_LIMIT + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:2510:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char stringBuffer2[STRING_BUFFER_LIMIT + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:2522:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:299: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(ptr, g->tmp.next, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:309:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, g->tmp.next, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:1399:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). g->stm.dst = g->cb.stm.open(&g->cb.stm, CFW_DST_STREAM_ID, h->offset.end); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:1443:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). g->stm.dbg = g->cb.stm.open(&g->cb.stm, CFW_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:2283:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:2357:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c:67:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c:97:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c:231:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c:879: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 *opname[32] = { data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c:159:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 null_str[1] = {'\0'}; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:270: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 opLenCache[256]; /* Cached values of t2oplen. If 0, the second byte in the charstring indicates the length */ data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:277: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 subrPrefixMap[SUBR_PREFIX_MAP_SIZE]; /* bit table where a bit is set when its corresponding subr 2-byte prefix selected */ data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:824:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(destNode->edgeTable, srcNode->edgeTable, sizeof(Edge) * srcNode->edgeTableSize); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:2423:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chars->data, h->cstrs.array, h->cstrs.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:2628:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(subrs->data, h->cstrs.array, h->cstrs.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:2707:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->data, h->cstrs.array, h->cstrs.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:2936:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char dummycstr[2] = { data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:3227:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[16]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:3228:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%hu.%hu%c%d", subr->count, subr->length - subr->maskcnt, data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:81:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char HintMask[MAX_MASK_BYTES]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:165:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). g->stm.tmp = g->cb.stm.open(&g->cb.stm, CFW_TMP_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:1546:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h->masks.array[index], mask, size); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:2008: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 t[2]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:2025: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 t[5]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:2145:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hintop[MAX_MASK_BYTES + 2]; /* One extra length byte consumed by subroutinizer */ data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:2177: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(h->lastmask, hintmask, h->masksize); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:2442: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 map[T2_MAX_STEMS]; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_t2cstr.c:2670: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 *opname[32] = { data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:21:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[MAX_BUF]; \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:26:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, p, MAX_BUF); \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:27:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, q, MAX_BUF); \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:28:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q, tmp, MAX_BUF); \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:32: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(tmp, p, n); \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:33: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(p, q, n); \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:34: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(q, tmp, n); \ data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:214:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:217:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, s, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:287:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(version_buf, "%d.%d.%d", ((version) >> 16 & 0xff), data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:191:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date[10]; /* Today's date: dd mmm yy */ data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time[6]; /* Current time: hh:mm */ data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:193:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pdfdate[24]; /* Today's date and time in PDF date format */ data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:385:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(&h->pdfdate[strlen(h->pdfdate)], "%c%02ld'%02ld'", data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:422:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->dst.stm = h->cb.stm.open(&h->cb.stm, PDW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:504:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:540:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:547:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->stms[iStm], length), buf, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:612:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char src[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:613:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dst[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:759:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[15]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:786:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%.0f %.0f", h->path.bx, h->path.by); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:973:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:976:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%.2f", top); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:984:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%.2f", bottom); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tag[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1124:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char enc[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1125:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hAdv[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gname[127]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1134:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tag, "%hu,%u", info->tag, info->iFD); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1135:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(gname, "\\%hu", info->cid); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1140:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(hAdv, "%.2f", h->glyph.hAdv); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1156:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1263:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version[MAX_VERSION_SIZE + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1264:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char abf_version_buf[MAX_VERSION_SIZE]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1265:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pdw_version_buf[MAX_VERSION_SIZE]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1270:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(version, "%g", h->top->cid.CIDFontVersion); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1272:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char format[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1273:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(format, "%%.%ds", MAX_VERSION_SIZE); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1324:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[30]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1570:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1595:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%g", top); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1604:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%g", bottom); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1689:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1693:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%g", top); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1702:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%g", bottom); data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:34: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 class[256] = { data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:62:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char digit[256] = { data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:254: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(&h->tmp.array[i], h->mark, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:317:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rand[8]; /* Initial random bytes */ data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:431:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->src.stm = h->cb.stm.open(&h->cb.stm, h->src.id, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:989: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(h->tmp.array, token->value, token->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntread/sfntread.c:222:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->src.stm = h->cb.stm.open(&h->cb.stm, SFR_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntwrite/sfntwrite.c:165: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 buf[2]; data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntwrite/sfntwrite.c:174: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 buf[4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntwrite/sfntwrite.c:480:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->dst.stm = h->cb.stm.open(&h->cb.stm, SFW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/sha1/sha1.c:21: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 c[64]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:39:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:44:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:135: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(&buf[*cnt], ptr, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:143: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(&buf[*cnt], ptr, writeCnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:150:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:151:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", value); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:198:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:217:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[9]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:224:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%X", code); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:265:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:310:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, SVW_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:374:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.tmp = h->cb.stm.open(&h->cb.stm, SVW_TMP_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:402:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, SVW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:408:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpBuf[MAX_VERSION_SIZE + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:409:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:545:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[9]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:603:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%lX", info->encoding.code); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:614:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%05hu", info->cid); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[kMaxToken]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:165:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:296:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, SVR_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:361:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->src.tk.val, h->mark, len); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:501:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->src.tk.val, h->mark, len); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:572:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->val, src->val, src->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:758:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. p = (const char *)bsearch(opToken, op_keys, ARRAY_LEN(op_keys), sizeof(op_keys[0]), matchOps); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:818:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempVal[kMaxName]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:819:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempName[kMaxName]; data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:824:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, SVR_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:873:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tempName, "gid%05d", (unsigned short)h->chars.index.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:893:21: [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(tempName, "%c", *(tk->val)); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:897:21: [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(tempName, "ampersand"); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:900:21: [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(tempName, "quotedbl"); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:903:21: [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(tempName, "less"); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:906:21: [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(tempName, "greater"); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:929:21: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). width = atol(tempVal); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:1156:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->strings.buf, (long)(length + 1)), value, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1cstr/t1cstr.c:576:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&array[j], &h->BCA[i], sizeof(float) * count); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1cstr/t1cstr.c:630:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h->BCA[i], array, sizeof(float) * count); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1cstr/t1cstr.c:1298:37: [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(&h->BCA[iBase], h->aux->WV, data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:129:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char seen[kKeyCount]; /* Flags keys seen */ data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:199:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:333:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->strings.buf, (long)(length + 1)), value, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:539:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.tmp = h->cb.stm.open(&h->cb.stm, T1R_TMP_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:544:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, T1R_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1370:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char order[T1_MAX_MASTERS]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1371:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char check[T1_MAX_MASTERS]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1509:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->fd->aux.WV, h->mm.WV.array, nMasters * sizeof(h->mm.WV.array[0])); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1523:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->fd->aux.UDV, h->mm.UDV, nAxes * sizeof(h->mm.UDV[0])); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1543:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1544:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char coords[64]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1547:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char FontName[128]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1595:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(p, "%d_", (int)RND(h->fd->aux.UDV[i])); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1695:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->tmp.array, token->value, token->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1924:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(top->cid.FontMatrix.array, array, sizeof(array)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1945:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, array, sizeof(array)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1984: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(h->tmp.array, token->value, token->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2480: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(fd->subrs.offset.array, tmpoffs, sizeof(tmpoffs)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2693:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, h->src.next, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2704: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(p, h->src.next, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2853:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->tmp.array, cstr, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:108:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:141:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:186:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[HEX_LINE_LENGTH + 2 /* Newline */]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:249: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(&h->dst.buf[h->dst.cnt], ptr, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:257: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(&h->dst.buf[h->dst.cnt], ptr, cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:264:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:280:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:282:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", (long)roundf(value)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:306:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:416: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(p, h->tmp.next, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:424:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, h->tmp.next, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:430:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[HEX_LINE_LENGTH + 4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:437: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(line, h->overflow.buf, h->overflow.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:493: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(h->overflow.buf, &line[HEX_LINE_LENGTH], h->overflow.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:583: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(h->cstr.array, data, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:708:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:713:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", (long)roundf(value)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:762:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:766:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", (long)roundf(value)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:926:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *custom[256]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1153:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE + 1]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1554:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1556:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%hu", glyph->info->cid); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1572:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1585:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "(Binary) %ld StartData ", StartDataSize); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1654: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 FDMap[256]; data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1821:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(top->cid.FontMatrix.array, fdMatrix, font->FontMatrix.cnt * sizeof(float)); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1968:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.tmp = h->cb.stm.open(&h->cb.stm, T1W_TMP_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1973:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, T1W_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:2138:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, T1W_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:2956: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 *opname[32] = data/afdko-3.5.1+dfsg1/c/public/lib/source/t2cstr/t2cstr.c:90:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[T2_MAX_STEMS / 8]; /* Current mask */ data/afdko-3.5.1+dfsg1/c/public/lib/source/t2cstr/t2cstr.c:162:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char created[8]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char modified[8]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:319:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char panose[10]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:324:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char achVendId[4]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:359: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 *applestd[258] = data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:455:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[500]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:590:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, TTR_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:1854: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 gids[256]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:1977:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->strings.buf, length + 1), string, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2024:21: [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(dnaEXTEND(h->tmp1, 3), "(C)", 3); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2029:21: [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(dnaEXTEND(h->tmp1, 3), "(R)", 3); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2034:21: [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(dnaEXTEND(h->tmp1, 4), "(TM)", 4); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2057:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->tmp1, 3), "(C)", 3); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2062:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->tmp1, 3), "(R)", 3); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2067:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->tmp1, 4), "(TM)", 4); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2161:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(gname, "%.*s", length, string); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2174:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[8]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2181:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "uni%04hX", uv); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2384:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[10]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2385:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "g%ld", gid); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2458:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2460:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%.3f", fontRevision); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2578:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, TTR_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:129:13: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). s->fp = tmpfile(); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:175:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->buf + s->pos, ptr, count); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:178:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->buf + s->pos, ptr, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:218:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fp = fopen(s->filename, "rb"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:232:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:236:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fp = fopen(buffer, "rb"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:251:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fp = fopen(s->filename, "w+b"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:265:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fp = fopen(s->filename, "wb"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:272:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:276:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fp = fopen(buffer, "wt"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:544:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:578:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->dst.stm.fp = fopen(h->dst.stm.filename, "w"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:636: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(ptr, h->src.next, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:645:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, h->src.next, count); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:831:25: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). h->abf.afm.tmp_fp = tmpfile(); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:1325:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; /* 5 digits + hyphen + 5 digits + nul */ data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:1327:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%hu", last); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:1329:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%hu-%hu", first, last); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gname[64]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2135:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(gname, ".notdef"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2137:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(gname, "cid%hu", info->cid); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2211:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2250:17: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tmp = tmpfile(); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2364:17: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tmp = tmpfile(); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2424:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *font = fopen(fontfile, "rb"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2775:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:3042: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 *opname[32] = data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:3327: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 *opname[32] = data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5238:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dataOffset[3]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5368:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char junk[16]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5454:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempFileName[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5457:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tempFP = fopen(tempFileName, "rt"); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:61:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[kMaxToken]; data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:299:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:457:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, UFO_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:535: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(h->src.tk.val, h->mark, len); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:991:29: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). top->isFixedPitch = atol(keyValue); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1019:25: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pd->ForceBold = atol(keyValue); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1196:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, UFO_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1305:51: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). top->cid.Supplement = atol(copyStr(h, tk->val)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1378:5: [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(clientFilePath, "/contents.plist"); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1381:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, UFO_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1524:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempVal[kMaxName]; data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1525:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempName[kMaxName]; data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1541:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, UFO_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1553:32: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, UFO_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1594:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tempName, "gid%05d", (unsigned short)h->chars.index.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1603:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tempName, "gid%05d", (unsigned short)h->chars.index.cnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1635:34: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). glyphWidth = atol(tempVal); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1642:34: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). glyphWidth = atol(tempVal); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1750:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, UFO_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:3228:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.src = h->cb.stm.open(&h->cb.stm, UFO_SRC_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:3456:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cidstring[3] = "cid"; data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:3460:34: [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). unsigned short cid = atoi(digits); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:3567:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dnaEXTEND(h->strings.buf, (long)(length + 1)), value, length); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:28:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char glyphName[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:29:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char glifFileName[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:60:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:65:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:159: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(&buf[*cnt], ptr, left); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:167: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(&buf[*cnt], ptr, writeCnt); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:174:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:175:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", value); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:223:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:286:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dbg = h->cb.stm.open(&h->cb.stm, UFW_DBG_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:341:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:352:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, UFW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:387:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:399:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, UFW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:430:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<integer>%ld</integer>", h->top->cid.Supplement); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:449:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:460:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, UFW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:541:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:542:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer2[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:562:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, UFW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:601:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char versionStr[32]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:602:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(versionStr, "%.3f", top->cid.CIDFontVersion); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:639:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<integer>%d</integer>", data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:649:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<real>%.8f</real>", top->ItalicAngle); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:668:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<integer>%d</integer>", (int)round(0.5 + top->UnderlinePosition)); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:674:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<integer>%d</integer>", (int)round(0.5 + top->UnderlineThickness)); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:690:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:692:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:704:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:706:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:718:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:720:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:732:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:734:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:746:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:748:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:757:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:759:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:770:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:772:17: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:781:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<integer>%d</integer>", (int)stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:783:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t\t<real>%.2f</real>", stem); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:790:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char valueBuffer[50]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:792:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(valueBuffer, "%.8f", privateDict->BlueScale); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:814:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<integer>%d</integer>", (int)(0.5 + privateDict->BlueShift)); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:820:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "\t<integer>%d</integer>", (int)(0.5 + privateDict->BlueFuzz)); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:946:5: [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(glifName, ".glif"); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:952:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char glyphName[MAX_UFO_GLYPH_NAME]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:953:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char glifName[MAX_UFO_GLYPH_NAME]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:954:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char glifRelPath[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:970:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(glyphName, "cid%05hu", info->cid); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:988:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->stm.dst = h->cb.stm.open(&h->cb.stm, UFW_DST_STREAM_ID, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:1006:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[9]; data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:1008:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%06lX", info->encoding.code); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:19:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char srcName[MAX_PS_NAMELEN]; data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:20:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dstName[MAX_PS_NAMELEN]; data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:47:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char rtFile[FILENAME_MAX]; /* text file containing per-glyph entries */ data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:274:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename, "rb")) == NULL || data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:340:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE]; data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:347:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE]; data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:385:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (const char **)bsearch(key, options, ARRAY_LEN(options), data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:948:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lineBuffer[MAX_PS_NAMELEN * 2]; data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:951:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). rtf_fp = fopen(filePath, "rb"); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:978:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char advText[128]; data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:999:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rge->srcCID = atoi(rge->srcName); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1001:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rge->dstCID = atoi(rge->dstName); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1158:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->src.stm.fp = fopen(h->src.stm.filename, "rb"); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dfile.c:148: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(buf, filep->next, size); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.c:171:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "@%hu", glyphId); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.c:192:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "@%hu", glyphId); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.c:194:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "%.*s", (length > NAME_LEN) ? NAME_LEN : length, p); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:243:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[64]; \ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:14: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). #define OPEN open data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:38: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). #define OPEN open data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:146: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 file[FILESTR_BUF_SIZE]; data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:188:5: [2] (buffer) lstrcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Risk is low because the source is a constant string. lstrcat(path, "\\*.*"); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Efile.c:55: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 Wfnam[256]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/Efile.c:202:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFSIZ]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.c:62:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(filename, "rb"); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.c:69:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(filename, "w+b"); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.c:84: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 file[FILESTR_BUF_SIZE]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/Esys.c:93:13: [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(file, "rb"); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:145: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 scriptfilename[256]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:785:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char filename[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:789:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tag[5]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:927:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outputfilename[FILENAME_MAX]; data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1087:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(scriptfilename, "sfntedit.scr"); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:401: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 date[64]; data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:580:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(psname, "Unknown"); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:948:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(t, "%c%c%c%c", TAG_ARG(opt_tag)); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:952:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(t, "CFF_"); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1641:21: [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(cidname, "\\\\%02hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1643:21: [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(cidname, "\\%hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1646:21: [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(cidname, "\\\\%03hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1648:21: [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(cidname, "\\%hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1651:21: [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(cidname, "\\\\%04hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1653:21: [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(cidname, "\\%hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1656:21: [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(cidname, "\\\\%05hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1658:21: [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(cidname, "\\%hu", cffgi->id); data/afdko-3.5.1+dfsg1/c/spot/source/GDEF.c:217:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GDEF.c:267:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:22:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char kernPair[MAXAFMLINESIZE]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1096:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(othertag, "'%c%c%c%c' (Unknown/Unregistered tag)", TAG_ARG(tag)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1253:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[80]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1265:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1321:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1366:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[80]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1378:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1444:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1587:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1595:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1596:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[80]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1619:25: [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(label, "%d", xadv); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1621:25: [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(label, "%d,%d", xpla, ypla); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1623:25: [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(label, "%d", xpla); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1625:25: [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(label, "%d", yadv); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1627:25: [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(label, "%d", ypla); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1743:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1750:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1803:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1804:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1805:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[80]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1885:29: [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(label, "%d", xadv); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1887:29: [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(label, "%d", yadv); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1889:29: [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(label, "%d, %d", xpla, ypla); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1891:29: [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(label, "%d", xpla); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1893:29: [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(label, "%d", ypla); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1954:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:1955:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2082:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2083:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2427:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2586:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2608:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2744:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2766:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:2910:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3011:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3069:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char proofString[kProofBufferLen]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3101:17: [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(proofString, "context ["); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3106:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3135:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3150:21: [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(&proofString[psIndex], " ]"); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3160:17: [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(contextPrefix, " at index %d ", seqindex); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3201:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3244:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3296:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3818:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3860:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3907:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3955:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN], name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3957:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4013:25: [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(label, "%d,%d,%d,%d", vr1.XPlacement, vr1.YPlacement, vr1.XAdvance, vr1.YAdvance); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4026:25: [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(label, "%d,%d,%d,%d", vr2.XPlacement, vr2.YPlacement, vr2.YAdvance, vr2.YAdvance); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4046:21: [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(label, "%d,%d,%d,%d", vr1.XPlacement, vr1.YPlacement, vr1.XAdvance, vr1.YAdvance); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4191:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tagstr[5]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4213:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tagstr, "%c%c%c%c", TAG_ARG(featuretag)); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4270:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4272:25: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4306:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4308:25: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4330:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4340:21: [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(message, "Error: Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d LookupType %d is not supported.", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4353:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4363:21: [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(message, "Error: Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d LookupType %d is not supported.", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4375:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4385:21: [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(message, "Error: Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d LookupType %d is not supported.", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4408:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4410:25: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4458:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4460:25: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4491:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4493:25: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4665:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char afmFilePath[_MAX_PATH]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4670:13: [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(afmFilePath, ".temp.txt"); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4671:22: [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). AFMout = fopen(afmFilePath, "w"); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4682:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inLine[MAXAFMLINESIZE]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4687:22: [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). AFMout = fopen(afmFilePath, "r"); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4711:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix[6]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4712:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4713:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:964:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(othertag, "%c%c%c%c (Character Variant)", TAG_ARG(tag)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:967:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(othertag, "%c%c%c%c (Stylistic Set)", TAG_ARG(tag)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:970:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(othertag, "'%c%c%c%c' (Unknown/Unregistered tag)", TAG_ARG(tag)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1003:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1004:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1066:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1098:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1099:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1164:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1248:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1249:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1381:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1382:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1511:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1512:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1513:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ligname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1602:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1756:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1782:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1889:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char proofString[kProofBufferLen]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1919:17: [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(proofString, "context ["); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1924:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1945:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1960:21: [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(&proofString[psIndex], " ]"); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1970:17: [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(contextPrefix, " at index %d ", seqindex); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2008:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name1[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2051:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name2[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2104:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2686:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2728:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2775:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2834:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2904:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:2989:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3028:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3294:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3336:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3382:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3431:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char oname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3543:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tagstr[5]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3569:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tagstr, "%c%c%c%c", TAG_ARG(featuretag)); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3600:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3602:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3634:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3636:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3668:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3670:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3701:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3703:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3734:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3736:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3767:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3769:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3817:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3819:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3867:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[100]; data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:3869:21: [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(message, "Script: '%c%c%c%c' Language: '%c%c%c%c' LookupIndex: %d", data/afdko-3.5.1+dfsg1/c/spot/source/SING.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:1244:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mask[CFF_MAX_MASK_BYTES]; data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:1302:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(®[j], &h->BCA.array[i], sizeof(Fixed) * count); data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:1333:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h->BCA.array[i], reg, sizeof(Fixed) * count); data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:1566:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:2308:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->UDV, UDV, data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:2325:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(h->WV, WV, sizeof(cffFixed) * ((nMasters > TX_MAX_MASTERS) ? TX_MAX_MASTERS : nMasters)); data/afdko-3.5.1+dfsg1/c/spot/source/cffread.h:349:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void (*hintmask)(void *ctx, int cntr, int n, char mask[CFF_MAX_MASK_BYTES]); data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c:342:17: [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(str, "%0*X", precision, code); data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c:344:17: [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(str, "%u", code); data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c:395:17: [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(str, "UVS: %04X %04X", uv, uvs); data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c:397:17: [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(str, "UVS: %u %u", uv, uvs); data/afdko-3.5.1+dfsg1/c/spot/source/dump.c:10:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *opname[32] = data/afdko-3.5.1+dfsg1/c/spot/source/file.c:148: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(buf, file.next, size); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:288:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "undefined"); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:299:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "@%hu", glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:321:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "%hu", glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:323:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "%hu@%hu", glyphId, glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:327:17: [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(name, "%.*s@%hu", (length > (NAME_LEN - 6)) ? (NAME_LEN - 6) : length, p, glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:329:17: [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(name, "%.*s", (length > NAME_LEN) ? NAME_LEN : length, p); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:334:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(name, "%.*s", (length > NAME_LEN) ? NAME_LEN : length, p); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:338:21: [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(nicename, "%c%.*s", INDICATOR_MARKER, data/afdko-3.5.1+dfsg1/c/spot/source/global.c:341:21: [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(nicename, "%.*s", data/afdko-3.5.1+dfsg1/c/spot/source/global.c:348:21: [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(p, "@%hu", glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:354:21: [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(name, "%.*s@%hu", (length > (NAME_LEN - 6)) ? (NAME_LEN - 6) : length, p, glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/global.c:356:21: [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(name, "%.*s", (length > NAME_LEN) ? NAME_LEN : length, p); data/afdko-3.5.1+dfsg1/c/spot/source/glyf.c:1004:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%% proofCompound(%hu)\n", glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/glyf.c:1020:17: [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(str, "[%g %g %g %g %hd %hd] concat\n", data/afdko-3.5.1+dfsg1/c/spot/source/glyf.c:1028:17: [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(str, "%hd %hd translate\n", component->arg1, component->arg2); data/afdko-3.5.1+dfsg1/c/spot/source/glyf.c:1360:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(t, "%c%c%c%c", TAG_ARG(opt_tag)); data/afdko-3.5.1+dfsg1/c/spot/source/glyf.c:1364:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(t, "glyf"); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:485:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[30]; data/afdko-3.5.1+dfsg1/c/spot/source/main.c:524:21: [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). PyOutFile = fopen(outfilename, "w"); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:753:21: [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). PyOutFile = fopen(outfilename, "w"); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:1110:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(scriptfilename, "spot.scr"); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:40:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(glyphaliasfilename, "r"); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:46:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp1[MAX_NAME_LEN], temp2[MAX_NAME_LEN], c; data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:247:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[64]; \ data/afdko-3.5.1+dfsg1/c/spot/source/post.c:156:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(gni, "glyphNameIndex[%d]", glyphId); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:191:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(gni, "a%hu", format->code[glyphId]); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:247:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(gni, "glyphNameIndex[%d]", i); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:129: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 g_str[256]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:164:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)(*(ctx->psCommentBuf))), cmd, length); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:178:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->lpPassThrough + 2, cmd, length); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:179:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->lpPassThrough, &n, 2); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:208:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "/SYM /Symbol findfont %d scalefont def\n", RND(ctx->glyphSize)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:210:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "/LAB /Times-Roman findfont %g scalefont def\n", ABS2FNT(NUMERIC_LABEL_SIZE)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:212:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "/BLAB /Times-Bold findfont %g scalefont def\n", ABS2FNT(NUMERIC_LABEL_SIZE)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:214:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "/EMLAB /Times-BoldItalic findfont %g scalefont def\n", ABS2FNT(NUMERIC_LABEL_SIZE)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:216:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "/TITL /Times-Roman findfont %d scalefont def\n", TITLE_LABEL_SIZE); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:244:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%%!PS-Adobe-3.0\n"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:272:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _MT\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:298:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%%!PS-Adobe-3.0\n"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:317:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _MT\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:341:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "\n%g %g _MT %% Vertical Newline\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:349:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "\n%g %g _MT %% Newline\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:378:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _MT\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:403:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _MT\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:414:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "0 -%d rmoveto %%thin\n", amt); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:419:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%d 0 rmoveto %%thin\n", amt); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:436:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(psstr, "%g %g _MT\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:451:17: [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(psstr, "%g %g _MT %% Newline\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:462:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(psstr, "%g %g _MT\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:487:17: [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(psstr, "%g %g _MT %% Newline\n", ctx->currx, ctx->curry); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:589:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _MT\n", x, y); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:594:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _LT\n", x, y); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:599:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g %g %g %g %g _CT\n", x1, y1, x2, y2, x3, y3); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:617:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "_SP %% %d pages\n", proofPageCount(*ctxptr)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:620:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%%%%EOF\n"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:644:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmd[80]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:949:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempname[255]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:966:43: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:977:43: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:984:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(tempname, "OTFproof.ps"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:989:25: [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(tempname, "OTFproof.ps%d", retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:995:39: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1032:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1048:43: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1054:43: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(PSFilenameorPATTorNULL, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1059:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1063:21: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(tempname, "OTFproof.ps"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1068:25: [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(tempname, "OTFproof%d.ps", retries); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1074:39: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1088:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1094:43: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1101:43: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(PSFilenameorPATTorNULL, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1106:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempname[MAX_NAME_LEN]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1112:39: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ctx->psfileptr = fopen(tempname, "w")) == (FILE *)NULL) data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1137:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %d %d _MT %d %d _LT %d %d _LT %d %d _LT _CP ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1156:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %g %g _MT %g %g _LT %g %g _LT %g %g _LT _CP 0 setlinewidth stroke ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1164:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, " newpath %g %g _MT -%g 0 rlineto %g %g _MT %g 0 rlineto %g %g _MT 0 -%g rlineto %g %g _MT 0 %g rlineto _CP ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1174:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %g %g _MT %g %g _LT %g %g _LT %g %g _LT _CP 0 setlinewidth stroke ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1182:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, " newpath %g %g _MT -%g 0 rlineto %g %g _MT %g 0 rlineto %g %g _MT 0 -%g rlineto %g %g _MT 0 %g rlineto _CP ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1192:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %g %g _MT %g %g _LT %g %g _LT %g %g _LT _CP 0 setlinewidth stroke ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1200:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, " newpath %g %g _MT -%g 0 rlineto %g %g _MT %g 0 rlineto %g %g _MT 0 -%g rlineto %g %g _MT 0 %g rlineto _CP ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1232:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %g %g _MT 0 %g rlineto ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1236:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "[%d %d] 0 setdash ", RND(ABS2FNT(3)), RND(ABS2FNT(1))); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1304:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %g %d _MT %g 0 rlineto ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1310:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "[%d %d] 0 setdash ", RND(ABS2FNT(2)), RND(ABS2FNT(1))); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1397:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave %d %d translate %%originDelta\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1426:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %g %g _MT 0 %g rlineto %g %g _MT %g 0 rlineto ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1432:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g %g _MT 0 %g rlineto %g %g _MT %g 0 rlineto stroke grestore %%widthmarks\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1439:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "gsave newpath %d %g _MT 0 %g rlineto %d 0 _MT %g 0 rlineto ", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1445:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%d 0 _MT %g 0 rlineto %d %g _MT 0 %g rlineto stroke grestore %%widthmarks\n", data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1503:13: [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(g_str, " show grestore\n"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1506:17: [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(g_str, " grestore\n"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1549:17: [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(g_str, " grestore\n"); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1597:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "0 -%g rmoveto\n", ctx->thinspace); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1602:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(g_str, "%g 0 rmoveto\n", ctx->thinspace); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1933:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char defaultprintername[256]; data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1978:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cTechnology[128]; data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:606:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[5]; data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:608:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%c%c%c%c", TAG_ARG(prf->tag)); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:21: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). #define OPEN open data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:56:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errnumber[5]; data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:57:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(errnumber, "%d", errno); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:388:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[256]; data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:392:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "r"); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:397:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "r"); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:400:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "w"); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:420:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return (fopen((const char *)OUTfilename, "w")); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:454:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return (fopen((const char *)OUTfilename, "w")); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:506:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename, O_RSRC | O_RDONLY); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:528:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file[256]; data/afdko-3.5.1+dfsg1/c/spot/source/t13supp.c:380:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mask[CFF_MAX_MASK_BYTES]; data/afdko-3.5.1+dfsg1/c/spot/source/t13supp.c:423:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(®[j], &h->BCA.array[i], sizeof(Fixed) * count); data/afdko-3.5.1+dfsg1/c/spot/source/t13supp.c:454:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&h->BCA.array[i], reg, sizeof(Fixed) * count); data/afdko-3.5.1+dfsg1/c/spot/source/tto.c:793:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[256]; data/afdko-3.5.1+dfsg1/c/spot/source/tto.c:794:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(temp, "Skipping lookup %d in feature '%c%c%c%c' for script '%c%c%c%c' language '%c%c%c%c' because already proofed in script '%c%c%c%c', language '%c%c%c%c'.\n", data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:252:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename, "rb")) == NULL || data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:318:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE]; data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:325:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version_buf[MAX_VERSION_SIZE]; data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:364:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (const char **)bsearch(key, options, ARRAY_LEN(options), data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:397:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). h->src.stm.fp = fopen(h->src.stm.filename, "rb"); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:149:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[3]; data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:150:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "%02x", c); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:166:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char token[100], *t; data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:319:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(++s); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:375:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *t, RD[20], prefix[40]; data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:577:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(argv[optind], "rb"); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:589:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp1 = fopen(argv[optind], "rb"); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:595:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp2 = fopen(argv[optind + 1], "wb"); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:329:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:331:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:332:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:333:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count += (getc(fp) << 8); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:334:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count += (getc(fp) << 16); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:335:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count += (getc(fp) << 24); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:346:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:348:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:349:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:354:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count = getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:355:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count += (getc(fp) << 8); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:356:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count += (getc(fp) << 16); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:357:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). count += (getc(fp) << 24); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:359:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return getc(fp); data/afdko-3.5.1+dfsg1/c/detype1/source/detype1.c:363:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return getc(fp); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:86:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HdrAction = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:100:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FirstAction = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:414:14: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if(go) strncpy(name,LATEXT(1),MaxRuleName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:421:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). if(go) strncpy(name,LATEXT(1),MaxRuleName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:447:31: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. /* MR10 */ strncat(ClassDeclStuff," ",MaxClassDeclStuff); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:448:31: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. /* MR10 */ strncat(ClassDeclStuff,LATEXT(1),MaxClassDeclStuff); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:457:64: [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). /* MR22 */ BaseClassName=(char *)calloc(strlen(LATEXT(1))+1,sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:568:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pdecl = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:590:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ret = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:689: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). a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:750:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:784: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). /* MR1 */ a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:820: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). /* MR1 */ a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:868:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). CurPredName=(char *)calloc(1,strlen(name) + 10); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:1602: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). a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2359:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2427: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). a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2514:84: [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). /* MR21 */ pFirstSetSymbol = (char *) calloc(strlen(LATEXT(1))+1, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2527:87: [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). /* MR21 */ pFirstSetSymbol = (char *) calloc(strlen(LATEXT(1))+1, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2630: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). a = (char *)calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2846: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). p[strlen(p)-1] = '\0'; /* kill trailing space */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2887: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). char *a = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2892:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). eh->signalname = (char *) calloc(strlen("default")+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:2994:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _retv->signalname = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3004:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _retv->signalname = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3024:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). _retv->action = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/antlr.c:3562:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(egroup) > (size_t)0 ) fprintf(stderr, " in %s", egroup); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c:61:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *q = (char *) malloc( strlen(parm) + 1 ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c:103:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). a->action = (char *) malloc( strlen(action)+1 ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c:117:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). t=key=(char *)calloc(1,strlen(a->action)+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/build.c:138: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). /* MR12c */ strEnd=strStart+strlen(strStart)-1; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/gen.c:4527:41: [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). prevFileNameMS=(char *)calloc(1,strlen(fileName)+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:203:13: [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). q->expr[ strlen(q->expr) ] = '"'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/lex.c:872:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s[ strlen(s)-1 ] = '\0'; /* remove last quote */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:156: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). fnl = strlen(one_fn); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1161: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). require(strlen(buf) + 2 < (size_t)MaxFileName, "outname: filename too big"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1532: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). if (newname[strlen(newname)-1] != *dir_sym) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1709:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ua->action = (char *) calloc(strlen(LATEXT(1))+1, sizeof(char)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/main.c:1747: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). p = (char *)malloc(strlen(buf)+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/misc.c:698: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). if ( (i=strlen(rule)) > MaxRuleName ) /* MR10 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/mrhoist.c:2216:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ruleNameStatic1,n->rname,ruleNameMax); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/pred.c:86:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). k = atoi(p+strlen("LT(")); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/pred.c:89: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). p += strlen("LT("); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/pred.c:102: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). p += strlen("LATEXT("); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1220:5: [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). strlen("consumeUntil("))); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1285:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(zzbegexpr)>(size_t)85 ) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1307:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(zzbegexpr)>(size_t)85 ) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1309:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zzbegexpr[strlen(zzbegexpr)-1] = ' '; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1332:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(zzbegexpr)>(size_t)85) fatal("$i.j attrib ref too big"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1370: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). require (strlen(zzbegexpr)<=(size_t)285, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/antlr/scan.c:1440:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(zzbegexpr)>(size_t)85 ) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/dlg_p.c:957:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(egroup) > (size_t)0 ) fprintf(stderr, " in %s", egroup); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/output.c:138: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). char *p = (char *)malloc(strlen(s)+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/dlg/support.c:233: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). if (newname[strlen(newname)-1] != *dir_sym) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:457: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(egroup) > 0 ) /* MR23 */ printMessage(stderr, " in %s", egroup); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AParser.cpp:556:20: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. if ( i>1 ) strcat(zzFAILtext, " "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:195:46: [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 getLength() const { return strlen(getText()); } // MR11 data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:203: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). _text = new ANTLRChar[strlen(s)+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:209:13: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(_text,""); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:268:46: [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 getLength() const { return strlen(getText()); } // MR11 data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:276: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). _text = new ANTLRChar[strlen(s)+1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/AToken.h:282:13: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(_text,""); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/BufFileInput.cpp:63:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc( input ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/BufFileInput.cpp:77:13: [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 l = strlen( s ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/BufFileInput.cpp:83:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc( input ); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/DLexerBase.h:73:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c=getc(input); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charbuf.h:43:28: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define zzcr_attr(a,tok,t) strncpy((a)->text, t, D_TextSize-1); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/charptr.c:55:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *a = (char *) malloc(strlen(text)+1); /* MR6 */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/dlgauto.h:81:33: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define ZZGETC_STREAM {zzchar = getc(zzstream_in); zzclass = ZZSHIFT(zzchar);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:194:14: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. if ( i>1 ) strcat(text, " "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:443: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(egroup) > 0 ) fprintf(stderr, " in %s", egroup); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:639:23: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. {NLA = zzEOF_TOKEN; strcpy(NLATEXT, "");} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:717:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). while ( (zzinf_text_buffer_index+strlen(NLATEXT)+1) >= zzinf_text_buffer_size ) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:732: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). zzinf_text_buffer_index += strlen(NLATEXT)+1; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/h/err.h:753: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). zzinf_text_buffer_index += strlen(&zzinf_text_buffer[zzinf_text_buffer_index])+1; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/err.c:39:22: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). {(node)->token=_tok; strncpy((node)->text, _text,MaxAtom);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorcerer.c:59:69: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( !root ) t->ast_right(_parser->write) = t->ast_right(_parser->read); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorcerer.c:60:54: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). t->ast_down(_parser->write) = t->ast_down(_parser->read); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorcerer.c:61:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( t->ast_down(_parser->read)!=NULL ) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorcerer.c:62:49: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _copy_wildcard(_parser, t->ast_down(_parser->read), 0); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/lib/sorcerer.c:65:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). t = t->ast_right(_parser->read); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:687: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). require(strlen(buf) + 2 < (size_t)MaxFileName, "outname: filename too big"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:748: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). if (newname[strlen(newname)-1] != *dir_sym) data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:879: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). p = &s[strlen(s)-1]; /* start at end of string and work back */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:907:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = (char *) malloc(strlen(s)+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:997:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = &(decl[strlen(decl)-1]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1000: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). require(strlen(decl)>(size_t)0, "id_in_decl: empty decl"); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1009:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(id, start, end-start); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1028:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &s[strlen(s)-1]; /* start at end of string and work back */ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1077:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &call[strlen(prefix)]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1093:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tname, b, e-b+1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/main.c:1106: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). p += strlen(duh); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:38:22: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). {(node)->token=_tok; strncpy((node)->text, _text,MaxAtom);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/scan.c:789:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zzbegexpr[strlen(zzbegexpr)-1] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:39:22: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). {(node)->token=_tok; strncpy((node)->text, _text,MaxAtom);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:372:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tokdefs_file[strlen(tokdefs_file)-1] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:414:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(CurClassName,LATEXT(1),MaxAtom); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:421:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(CurClassName,LATEXT(1),MaxAtom); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/sor.c:1895:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( strlen(egroup) > (size_t)0 ) fprintf(stderr, " in %s", egroup); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/sorcerer/stdpccts.h:41:22: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). {(node)->token=_tok; strncpy((node)->text, _text,MaxAtom);} data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:227:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:227:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:230:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:230: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). APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:234:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:234: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). ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:238:13: [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). PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:238:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:242: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). LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:242: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). LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:246:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:246:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/DECmms/genmms.c:648: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). char *p = &(*files)[strlen(*files)-1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:388:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:388:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:391:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:391: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). APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:395:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:395: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). ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:399:13: [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). PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:399:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:403: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). LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:403: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). LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:407:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:407:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk.c:943:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = &(*files)[strlen(*files)-1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:208:9: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(strcat(cfiles," "), t); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:266:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:266:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ATOKENBUFFER_O[strlen(ATOKENBUFFER_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:269:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:269: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). APARSER_O[strlen(APARSER_O)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:273:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:273: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). ASTBASE_O[strlen(ASTBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:277:13: [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). PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:277:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PCCTSAST_O[strlen(PCCTSAST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:281: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). LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:281: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). LIST_O[strlen(LIST_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:285:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:285:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DLEXERBASE_O[strlen(DLEXERBASE_C)-strlen(CPP_FILE_SUFFIX)] = '\0'; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/genmk/genmk_old.c:658:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = &(*files)[strlen(*files)-1]; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/support/set/set.c:557:13: [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). set_new(a, strlen(s)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/2/MyLexer.cpp:23:6: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/2/MyLexer.cpp:39:34: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( c==' ' || c=='\n' ) c=getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/2/MyLexer.cpp:47:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/2/MyLexer.cpp:61:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/MyLexer.cpp:23:6: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/MyLexer.cpp:39:34: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( c==' ' || c=='\n' ) c=getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/MyLexer.cpp:47:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/build/hotpccts/pccts/testcpp/3/MyLexer.cpp:61:8: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getchar(); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/cffread/cffread.c:647:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(std[sid]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/OS_2.c:352:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(h->tbl.achVendId, font->vendId, VEND_ID_SIZE); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/STAT.c:471:66: [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). dupeMsg = MEM_NEW(g, sizeof(char) * (strlen(baseMsg) + count)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/dlgauto.h:85:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). zzchar = getc(zzstream_in); \ data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:197:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(text, " "); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:404:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(egroup) > 0) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:613:9: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(NLATEXT, ""); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:684:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). while ((zzinf_text_buffer_index + strlen(NLATEXT) + 1) >= zzinf_text_buffer_size) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:697:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zzinf_text_buffer_index += strlen(NLATEXT) + 1; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/err.h:716:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zzinf_text_buffer_index += strlen(&zzinf_text_buffer[zzinf_text_buffer_index]) + 1; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:317: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). len = strlen(msg); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:326:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dnaEXTEND(g->note, len), msg, len); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:475: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). *dst = MEM_NEW(g, strlen(src) + 1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1003:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(t) >= 3 && (t[0] == 'K' || t[0] == 'T') && t[1] == '_') { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1005:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(t) == 2 && t[0] == '\\' && strpbrk(t + 1, "[]{}-") != NULL) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1009:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(t) == 1 && strpbrk(t, ";,'@=<>") != NULL) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1041:13: [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(egroup) > 0) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1056:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, tagName, 4); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1090:13: [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(text) >= MAX_TOKEN) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1099:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(attr->text, startCopy, MAX_TOKEN - 1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1111:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1867:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, str, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1912:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(preNum, firstName, p1 - firstName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1942:13: [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(firstName) != strlen(lastName)) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:1942: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(firstName) != strlen(lastName)) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:2943: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). char* p = g->error_id_text + strlen(g->error_id_text); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:3985:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((fraction != 0) && (strlen(fraction) > 0)) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/feat.c:3986: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). short strLen = strlen(fraction); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:191:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). id = (char *)g->cb.malloc(g->cb.ctx, strlen(vend) + 1); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:422:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(g->font.version.PS, p, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1114:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *dst = dnaGROW(g->tmp, (long)strlen(src)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1243:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *dst = dnaGROW(g->tmp, (long)strlen(src)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1381:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/hot.c:1536:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(string); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:471:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(msg); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:477:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(msg); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1194:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). long messageLen = strlen(message) + strlen(filename); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1194:41: [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). long messageLen = strlen(message) + strlen(filename); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1489:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(gname) > MAX_GNAME_LEN) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1524:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p) + 1; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/map.c:1627:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gi->gname.str[strlen(gi->gname.str) - 1] != AGL2UV_DBLMAP_CHAR) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:201:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dst, str, length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:307:58: [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). addStdNamePair(h, win, mac, HOT_NAME_UNIQUE, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:333:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addStdNamePair(h, win, mac, HOT_NAME_VERSION, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:338: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). strlen(g->font.FontName.array), g->font.FontName.array); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:403:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). long length = strlen(src); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:482:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addWinDfltName(h, HOT_NAME_FAMILY, strlen(tempString), tempString); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:526: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). HOT_NAME_FAMILY, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:556:37: [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). HOT_NAME_SUBFAMILY, strlen(style), style); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:564:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addWinDfltName(h, HOT_NAME_FULL, strlen(h->g->font.FontName.array), data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:608:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FULL, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:615:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FULL, strlen(Full), Full); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:633:57: [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). addMacDfltName(h, HOT_NAME_PREF_FAMILY, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:638:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addMacDfltName(h, HOT_NAME_FAMILY, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:652:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). addMacDfltName(h, HOT_NAME_FAMILY, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:682:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FAMILY, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:703:60: [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). addMacDfltName(h, HOT_NAME_PREF_SUBFAMILY, strlen(Subfamily), Subfamily); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:705:59: [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). addMacDfltName(h, HOT_NAME_SUBFAMILY, strlen(Subfamily), Subfamily); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:738:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_SUBFAMILY, strlen(Subfamily), Subfamily); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:768:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_SUBFAMILY, strlen(style), style); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:826:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FULL, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:834:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FULL, strlen(Full), Full); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:882:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FULL, strlen(Family), Family); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:890:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HOT_NAME_FULL, strlen(Full), Full); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:960:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(src); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:1128:60: [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). addName(h, platformId, platspecId, languageId, nameId, strlen(str), str); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:1134: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). addWinDfltName(h, h->userNameId, strlen(str), str); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/hotconv/name.c:1135: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). addMacDfltName(h, h->userNameId, strlen(str), str); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:615: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). size_t length = strlen(value); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:634: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). size_t length = strlen(value); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:801: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). sprintf(&text[strlen(text)], " [%s]", h->cb.psId(h->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/pstoken/pstoken.c:823: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). sprintf(&text[strlen(text)], " [%s]", h->cb.psId(h->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/charset.c:105:26: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/charset.c:109:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch:; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c:123:22: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c:127:5: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch:; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c:145:26: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c:151:26: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/encoding.c:155:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch:; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/fdselect.c:75:26: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/fdselect.c:79:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch:; data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:629:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(oldName, name.data, name.length); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:640:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sid = sindexGetGlyphNameId(g, strlen(newName), newName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:769:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (sid = sindexCheckId(h->g, strlen(name), name)) == SID_UNDEF) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:852:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *dnaNEXT(h->reorder.charset) = sindexGetId(g, strlen(name[i]), name[i]); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:1004:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (sid = sindexCheckId(h->g, strlen(name), name)) == SID_UNDEF) { data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:1255:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str_length = strlen(char_name); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/parse.c:1265:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str_length2 = strlen(char_name2); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/subr.c:1048:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pend = p + strlen((char *)p); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:228:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). font->size.FontName = strlen(font->FontName); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:472:53: [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). ((h->copyright == NULL) ? 0 : strlen(h->copyright)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:500:13: [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). strlen(call) + h->FontSet.size, data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:710:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). h->FontSet.size += strlen(wrap.header) + strlen(wrap.trailer); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:710: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). h->FontSet.size += strlen(wrap.header) + strlen(wrap.trailer); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:720: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). OUTN(strlen(wrap.header), wrap.header); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:797: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). OUTN(strlen(h->copyright), h->copyright); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:803: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). OUTN(strlen(wrap.trailer), wrap.trailer); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1067: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). sprintf(&text[strlen(text)], " [%s]", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1088: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). sprintf(&text[strlen(text)], " [%s]", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1108: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). sprintf(&text[strlen(text)], " [%s]", g->cb.psId(g->cb.ctx)); data/afdko-3.5.1+dfsg1/c/makeotf/makeotf_lib/source/typecomp/tc.c:1160:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(src); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:200:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t i = strlen(path); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:215: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). *dst = cbMemNew(h, strlen(src) + 1); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:498:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(featDir, path, p - path); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:547:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(featDir, fullpath, p - fullpath); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:648:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *count = strlen(buff); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:851:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). long messageLen = strlen(message) + strlen(filename); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:851:41: [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). long messageLen = strlen(message) + strlen(filename); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1064:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int iNL = strlen(buf) - 1; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1091:13: [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(final) > MAX_FINAL_CHAR_NAME_LEN) { data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1092:99: [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). cbWarning(h, "final name %s is longer (%lu) than limit %d, in %s line %ld.\n", final, strlen(final), MAX_FINAL_CHAR_NAME_LEN, filename, lineno); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1107:13: [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(alias) > MAX_CHAR_NAME_LEN) { data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1108:99: [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). cbWarning(h, "alias name %s is longer (%lu) than limit %d, in %s line %ld.\n", alias, strlen(alias), MAX_CHAR_NAME_LEN, filename, lineno); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1158:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(alias) + 1; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1161:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(final) + 1; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1164:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(uvName) + 1; data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1446:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(FontName); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1509:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int stylelen = strlen(rule->style); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1510:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int abrevlen = strlen(rule->abrev); data/afdko-3.5.1+dfsg1/c/makeotf/source/cb.c:1797:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(featDir, featurefile, p - featurefile); data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:674:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(familyName, FontName, sepIndex); data/afdko-3.5.1+dfsg1/c/makeotf/source/fcdb.c:677:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(familyName, FontName, sizeof(familyName)); data/afdko-3.5.1+dfsg1/c/makeotf/source/file.c:77:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(s); data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/file.h:24:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define fileRead1(f) getc((f)->fp) data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h:21:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define strncpy os_strncpy data/afdko-3.5.1+dfsg1/c/makeotf/source/include_files/lstring.h:25: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). #define strlen os_strlen data/afdko-3.5.1+dfsg1/c/makeotf/source/main.c:279:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(src) >= FILENAME_MAX) { data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:232:17: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(h->top->Notice.ptr, " "); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1014:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &h->file.src[strlen(h->file.src)]; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1176:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int end = (int)strlen(str) - 1; data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1197:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(str) == 0) { data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1243:15: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. len = sscanf(buf, "%127s %127[^\n]", key, value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1250:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(buf) == 0) data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1304: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). long lenString = strlen(value); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1600:11: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. len = sscanf(lineBuffer, "%127s %127s %ld", progName, gaf->FontName, &gaf->LanguageGroup); data/afdko-3.5.1+dfsg1/c/mergefonts/source/mergeFonts.c:1631:15: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. len = sscanf(lineBuffer, "%127s %127s", gae->dstName, gae->srcName); data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:141:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t (*read)(ctlStreamCallbacks *cb, void *stream, char **ptr); data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:337:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void (*read)(ctlSharedStmCallbacks *h, size_t count, char *ptr); data/afdko-3.5.1+dfsg1/c/public/lib/api/ctlshare.h:549:32: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define STRNCPY_S(d, ds, s, n) strncpy(d, s, n) data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_afm.c:106:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = fgetc(h->tmp_fp)) != EOF) { data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:434:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). h->left = (int)(79 - (strlen(p) + 1)); data/afdko-3.5.1+dfsg1/c/public/lib/source/absfont/absfont_dump.c:472:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = (int)strlen(tmp) - 1; data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:285:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:411:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return h->cb.stm.read(&h->cb.stm, stream, ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/cfembed/cfembed.c:1249:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->stm.cb.read = h->cb.stm.read; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:230:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:439:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1055:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove(p, q + n, strlen(p) + 1 - (q - p + n)); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1086: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). memmove(p, q + n, strlen(p) + 1 - (q - p + n)); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1914:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf) == 0; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1936: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). length = (long)strlen(p); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:1942: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). length = (long)strlen(p); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffread/cffread.c:2440: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). long len = (long)strlen(str); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:851:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). h->name.datasize += (long)strlen(name); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:1136:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). offset += (Offset)strlen(name); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:1147:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cfwWrite(g, strlen(name), name); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:1223:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g->tmp.length = g->cb.stm.read(&g->cb.stm, g->stm.tmp, &g->tmp.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite.c:2289:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)g->cb.stm.write(&g->cb.stm, g->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c:78:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). postscriptLen = strlen(dst->PostScript.ptr) + 1; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_dict.c:162:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). postscriptLen = strlen(dst->PostScript.ptr) + 1; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c:145: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). stringLen = (long)strlen(string) + 1; data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c:193: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). size += (long)strlen(&h->strings.array[custom->iString]); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c:230:37: [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). index.datasize += (long)strlen(&h->strings.array[custom->iString]); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c:251: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). offset += (Offset)strlen(&h->strings.array[h->custom.array[i].iString]); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_sindex.c:258: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). cfwWrite(g, strlen(string), string); data/afdko-3.5.1+dfsg1/c/public/lib/source/cffwrite/cffwrite_subr.c:1061:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pend = p + strlen((char *)p); data/afdko-3.5.1+dfsg1/c/public/lib/source/ctutil/ctutil.c:263:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = (int)strlen(p); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:385:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(&h->pdfdate[strlen(h->pdfdate)], "%c%02ld'%02ld'", data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:508:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dstWrite(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:546: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). length = (long)strlen(buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1066:9: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(buf, "-"); data/afdko-3.5.1+dfsg1/c/public/lib/source/pdfwrite/pdfwrite.c:1078:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:264:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.left = h->cb.stm.read(&h->cb.stm, h->src.stm, &h->src.next); data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:279:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->cipher.length = h->cb.stm.read(&h->cb.stm, h->src.stm, &h->cipher.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/pstoken/pstoken.c:939:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). long length = (long)strlen(value); data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntread/sfntread.c:121:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->src.stm, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/sfntwrite/sfntwrite.c:194:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->dst.left = (long)(h->cb.stm.read(&h->cb.stm, h->dst.stm, &h->dst.next)); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:79:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:152:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:204:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:209:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(s), s); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:215: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). long len = (long)strlen(s); data/afdko-3.5.1+dfsg1/c/public/lib/source/svgwrite/svgwrite.c:479:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((cntRead = h->cb.stm.read(&h->cb.stm, h->stm.tmp, &pBuf)) != 0) { data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:171:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:317:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:728:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:861:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fnp, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:908:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tempVal, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:913:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tempVal, tk->val + 1, tk->length - 2); /* remove final ";" and initial '&' */ data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:927:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tempVal, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:954:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gnameIndex = addString(h, strlen(tempName), tempName); data/afdko-3.5.1+dfsg1/c/public/lib/source/svread/svread.c:980:47: [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). gnameIndex = addString(h, strlen(tempName), tempName); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1cstr/t1cstr.c:160:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = (long)h->aux->stm->read(h->aux->stm, h->aux->src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:205:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1555:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(FontName, pFontName, 128); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1584:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). h->top.Weight.impl = addString(h, strlen(Weight), Weight); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1596: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). p += strlen(p); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1598:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lenFontName = strlen(FontName); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1599:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lenCoords = strlen(coords); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:1605:48: [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). h->fd->fdict->FontName.impl = addString(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2011:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *endp = p + strlen(p); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2057:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(map[i].name) == (size_t)length && data/afdko-3.5.1+dfsg1/c/public/lib/source/t1read/t1read.c:2639:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:170:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:286:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:291:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(s), s); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:319:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->tmp.length = h->cb.stm.read(&h->cb.stm, h->stm.tmp, &h->tmp.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1207:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeCstr(h, 1 + strlen(glyph->info->gname.ptr), &glyph->cstr, 0); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1221:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t length = h->cb.stm.read(&h->cb.stm, h->cb.sing.stm, ptr); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1558: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). writeCstr(h, strlen(buf), &glyph->cstr, 1); data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1587: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). strlen(buf) + StartDataSize + strlen(h->arg.newline), data/afdko-3.5.1+dfsg1/c/public/lib/source/t1write/t1write.c:1587:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(buf) + StartDataSize + strlen(h->arg.newline), data/afdko-3.5.1+dfsg1/c/public/lib/source/t2cstr/t2cstr.c:168:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->aux->stm->write(h->aux->stm, h->aux->dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/t2cstr/t2cstr.c:211:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = (long)h->aux->stm->read(h->aux->stm, h->aux->src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:461:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:644:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:1631:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf) == 0; data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2128:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dnaSET_CNT(h->tmp1, (long)(strlen(gname) + 7 * 2)); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2139:62: [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). h->glyphs.array[gid].info.gname.impl = addString(h, (int)strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2389: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). addString(h, (int)strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2461: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). return addString(h, (int)strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ttread/ttread.c:2505:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). font->FontName.impl = addString(h, (int)strlen(unknown), unknown); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:1330:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcpy(dnaEXTEND(h->subset.args, (long)strlen(buf) + 1), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2138:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nameLen = strlen(gname) + 1; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2431:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). switch (fgetc(font)) { data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2475:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). switch (fgetc(font)) { data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:2918:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). title, (int)(sizeof(dots) - 1 - strlen(title)), dots, data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:4492:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q += strlen(q) + 1; data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5524:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(h->file.src, "-"); data/afdko-3.5.1+dfsg1/c/public/lib/source/tx_shared/tx_shared.c:5525:5: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(h->file.dst, "-"); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:305:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:476:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). h->src.length = h->cb.stm.read(&h->cb.stm, h->stm.src, &h->src.buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:520:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(p) > 128) data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:872:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(str); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:897:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value = memNew(h, strlen(oldString) + 1); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:909:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:949:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* newString = memNew(h, strlen(cpy) + strlen(keyValue) + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:949:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* newString = memNew(h, strlen(cpy) + strlen(keyValue) + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:961:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* newString = memNew(h, strlen(top->version.ptr) + strlen(keyValue) + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:961:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* newString = memNew(h, strlen(top->version.ptr) + strlen(keyValue) + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:971:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* newString = memNew(h, strlen(top->version.ptr) + strlen(keyValue) + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:971:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* newString = memNew(h, strlen(top->version.ptr) + strlen(keyValue) + 2); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1135:46: [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). newGLIFRec->glifFileName = memNew(h, 1 + strlen(fileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1175:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). glifRec->altLayerGlifFileName = memNew(h, 1 + strlen(fileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1372:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). clientFilePath = memNew(h, 2 + strlen(h->altLayerDir) + strlen(plistFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1372:65: [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). clientFilePath = memNew(h, 2 + strlen(h->altLayerDir) + strlen(plistFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1375:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). clientFilePath = memNew(h, 2 + strlen(h->defaultLayerDir) + strlen(plistFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1375:69: [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). clientFilePath = memNew(h, 2 + strlen(h->defaultLayerDir) + strlen(plistFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1457: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). addString(h, strlen(glifRec->glyphName), glifRec->glyphName); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1537:47: [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). glifRec->glifFilePath = memNew(h, 2 + strlen(h->altLayerDir) + strlen(glifRec->altLayerGlifFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1537:72: [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). glifRec->glifFilePath = memNew(h, 2 + strlen(h->altLayerDir) + strlen(glifRec->altLayerGlifFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1549:47: [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). glifRec->glifFilePath = memNew(h, 2 + strlen(h->defaultLayerDir) + strlen(glifRec->glifFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1549:76: [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). glifRec->glifFilePath = memNew(h, 2 + strlen(h->defaultLayerDir) + strlen(glifRec->glifFileName)); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1618:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tempVal, tk->val + 1, tk->length - 2); /* remove final ";" and initial '&' */ data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1633:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tempVal, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1640:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tempVal, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1920:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(guideline->name, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1928:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(guideline->color, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1936:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(guideline->identifier, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1988:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(anchor->name, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:1996:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(anchor->color, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:2004:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(anchor->identifier, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:2072:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pointName, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:2668:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pointName, tk->val, tk->length); data/afdko-3.5.1+dfsg1/c/public/lib/source/uforead/uforead.c:3455:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(gi->gname.ptr) > 4) { data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:101:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)h->cb.stm.write(&h->cb.stm, h->stm.dbg, strlen(text), text); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:176:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:229:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(buf), buf); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:234:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). writeBuf(h, strlen(s), s); data/afdko-3.5.1+dfsg1/c/public/lib/source/ufowrite/ufowrite.c:796: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). size_t l = strlen(p); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:979:19: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. len = sscanf(lineBuffer, "%127s %127s %127s %f %f", rge->srcName, rge->dstName, advText, &rge->xOffset, &rge->yOffset); data/afdko-3.5.1+dfsg1/c/rotatefont/source/rotateFont.c:1140:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &h->file.src[strlen(h->file.src)]; data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dglobal.h:90: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). #define STR_ARG(s) strlen((char *)s), (s) data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:50:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncmp((char *)key, name, strlen(name)); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:118:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = argv[0] + strlen(argv[0]); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:171:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcpy(&arg[plen], &arg[strlen(opt->name)]); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:184:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). argv[argi] = arg + strlen(opt->name); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:244:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, argv[argi], 63); \ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:275:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(arg); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dopt.c:353:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(arg); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:61:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void (*read)(Card8, LongN, Card32); /* Reads table data structures */ data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:362:47: [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 (sscanf(p, "%4[^\n]", tag) != 1 || strlen(tag) != 4) { data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:386:47: [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 (sscanf(p, "%4[^\n]", tag) != 1 || strlen(tag) != 4) { data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:800:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void doTables(IntX read) { data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:861:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read) { data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:862:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (func != NULL && func->read != NULL) { data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:863:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). func->read(1, start1, length1); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:864:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). func->read(2, start2, length2); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:926:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). findFunc(tag)->read(1, (ttc1.loaded ? ttc1.offset : dir1.offset) + entry1->offset, data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:929:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). findFunc(tag)->read(2, (ttc2.loaded ? ttc2.offset : dir2.offset) + entry2->offset, data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:946:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). findFunc(tag)->read(1, (ttc1.loaded ? ttc1.offset : dir1.offset) + entry->offset, data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsfnt.c:949:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). findFunc(tag)->read(2, (ttc2.loaded ? ttc2.offset : dir2.offset) + entry->offset, data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:18:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define READ read data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:42:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define READ read data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:185:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen(dirName); data/afdko-3.5.1+dfsg1/c/sfntdiff/source/Dsys.c:244:47: [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). (*fileNameList)[i] = (Byte8 *)memNew((strlen(entp->d_name) + 1) * sizeof(Byte8)); data/afdko-3.5.1+dfsg1/c/sfntedit/source/Efile.h:31:36: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define STRLCPY(dst, src, dstsize) strncpy(dst, src, dstsize); dst[dstsize - 1] = 0 data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:434:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(filename) == 0) data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:439:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). taglen = strlen(p); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1145:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sourcepath = (char *)malloc(strlen(srcfile.name) + 1); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1179:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strcmp(dstfile.name + strlen(dstfile.name) - strlen(tmpname), tmpname) == 0) { /* Rename tmp file to source file */ data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1179:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strcmp(dstfile.name + strlen(dstfile.name) - strlen(tmpname), tmpname) == 0) { /* Rename tmp file to source file */ data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1201:41: [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). sourcepath = (char *)malloc(strlen(scriptfilename) + 1); data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1272: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). } else if (strcmp(dstfile.name + strlen(dstfile.name) - strlen(tmpname), tmpname) == 0) { /* Rename tmp file to source file */ data/afdko-3.5.1+dfsg1/c/sfntedit/source/main.c:1272:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strcmp(dstfile.name + strlen(dstfile.name) - strlen(tmpname), tmpname) == 0) { /* Rename tmp file to source file */ data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:570: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). for (i = 0; i < (int)strlen(infilename); i++) data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:574:37: [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). psname = (char *)memNew(strlen(infilename) + 1 - loc); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:583: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). length = strlen(psname); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1227:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)nam, (char *)ptr, fi->FontName.length); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1323:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). list[i].name = (Byte8 *)memNew(strlen(name) + 1); data/afdko-3.5.1+dfsg1/c/spot/source/CFF_.c:1660:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(cidname); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3109:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3110:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((psIndex + strlen(name2) + 2) >= kProofBufferLen) { data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3121: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). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3122:17: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(&proofString[psIndex], "]"); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3132:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3133:21: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(&proofString[psIndex], "["); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3138: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). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3139:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((psIndex + strlen(name2) + 10) >= kProofBufferLen) { data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:3149:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GPOS.c:4716:31: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. scanNum = sscanf(inLine, "%5s %64s %64s %d %d %d", prefix, name1, name2, &val1, &val2, &val3); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1927:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1931: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). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1932:17: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(&proofString[psIndex], "]"); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1942:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1943:21: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(&proofString[psIndex], "["); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1948: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). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1949:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((psIndex + strlen(name2) + 10) >= kProofBufferLen) { data/afdko-3.5.1+dfsg1/c/spot/source/GSUB.c:1959:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). psIndex = strlen(proofString); data/afdko-3.5.1+dfsg1/c/spot/source/SING.c:79:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(nam, (const char *)(SING->uniqueName), SING_UNIQUENAMELEN); data/afdko-3.5.1+dfsg1/c/spot/source/SING.c:89:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(nam, (const char *)(SING->baseGlyphName), SING->nameLength); data/afdko-3.5.1+dfsg1/c/spot/source/cffread.c:591:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(std[sid]); data/afdko-3.5.1+dfsg1/c/spot/source/cmap.c:1090:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = (name == NULL) ? 0 : strlen(name); data/afdko-3.5.1+dfsg1/c/spot/source/global.h:101: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). #define STR_ARG(s) strlen((char *)s), (s) data/afdko-3.5.1+dfsg1/c/spot/source/main.c:894:37: [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). sourcepath = (char *)memNew(strlen(scriptfilename)); data/afdko-3.5.1+dfsg1/c/spot/source/main.c:1194:41: [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). sourcepath = (char *)memNew(strlen(scriptfilename)); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:51:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:53:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:68:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:70:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(file); data/afdko-3.5.1+dfsg1/c/spot/source/map.c:106:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *newlength = strlen(mMAP[mid].nicename); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:52:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strncmp((char *)key, name, strlen(name)); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:124:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = argv[0] + strlen(argv[0]); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:175:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcpy(&arg[plen], &arg[strlen(opt->name)]); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:188:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). argv[argi] = arg + strlen(opt->name); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:248:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s, argv[argi], 63); \ data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:279:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(arg); data/afdko-3.5.1+dfsg1/c/spot/source/opt.c:357:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(arg); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:141:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(applestd[glyphId]); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:159:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(name); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:168:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(name); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:180:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(name); data/afdko-3.5.1+dfsg1/c/spot/source/post.c:192:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *length = strlen(gni); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:160: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). length = strlen(cmd); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:439:13: [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(str) < kMaxMessageLength) { data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:443: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). while (strlen(str) > kMaxMessageLength) { data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:465:13: [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(str) < kMaxMessageLength) { data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:471: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). size_t nLen = strlen(str); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:476:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, &str[nPos], kMaxMessageLength); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:852: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). len = 9 + mMAX(strlen(fmt1), strlen(fmt2)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:852: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). len = 9 + mMAX(strlen(fmt1), strlen(fmt2)); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:856: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). len += strlen(fullname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:862: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). len += strlen(psname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:886: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). len = strlen(fmt3); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:889:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(pageTitle); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:963: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). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:974: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). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:992:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1045: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). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1051: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). len = strlen(PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1071:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1091: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). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1098: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). len = strlen(PSFilenameorPATTorNULL); data/afdko-3.5.1+dfsg1/c/spot/source/proof.c:1109:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(tempname); data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:66:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void (*read)(LongN, Card32); /* Reads table data structures */ data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:359:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (sscanf(p, "%4[^\n]", tag) != 1 || strlen(tag) == 0) { data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:375: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). IntN taglen = strlen(tag); data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:533:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (sscanf(p, "%4[^\n]", feat) != 1 || strlen(feat) != 4) { data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:773:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static void doTables(IntX read) { data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:845:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read) { data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:846:56: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (level > 0 && func != NULL && func->read != NULL && !error) data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:847:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). func->read(start, length); data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:863:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (!read) data/afdko-3.5.1+dfsg1/c/spot/source/sfnt.c:920:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). findFunc(tag)->read((ttc.loaded ? ttc.offset : dir.offset) + entry->offset, data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:25:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define READ read data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:345:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)OUTfilename, (char *)(*fullPathHdl), fullPathLen); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:413:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)OUTfilename, (const char *)(&(theReply.sfFile.name[1])), theReply.sfFile.name[0]); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:494: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). length = strlen(filename); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:496:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)&vol[1], filename, vol[0] = length); data/afdko-3.5.1+dfsg1/c/spot/source/sys.c:497:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char *)&name[1], filename, name[0] = length); data/afdko-3.5.1+dfsg1/c/tx/source/tx.c:379:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = &h->file.src[strlen(h->file.src)]; data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:128:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(fp); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:131:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return getc(fp); data/afdko-3.5.1+dfsg1/c/type1/source/type1.c:137:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return getc(fp); ANALYSIS SUMMARY: Hits = 2477 Lines analyzed = 288883 in approximately 8.08 seconds (35735 lines/second) Physical Source Lines of Code (SLOC) = 226513 Hits@level = [0] 3921 [1] 558 [2] 1236 [3] 18 [4] 665 [5] 0 Hits@level+ = [0+] 6398 [1+] 2477 [2+] 1919 [3+] 683 [4+] 665 [5+] 0 Hits/KSLOC@level+ = [0+] 28.2456 [1+] 10.9354 [2+] 8.47192 [3+] 3.01528 [4+] 2.93581 [5+] 0 Dot directories skipped = 3 (--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.