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/hfst-3.15.1/back-ends/dlfcn/dlfcn.c
Examining data/hfst-3.15.1/back-ends/dlfcn/dlfcn.h
Examining data/hfst-3.15.1/back-ends/foma/apply.c
Examining data/hfst-3.15.1/back-ends/foma/coaccessible.c
Examining data/hfst-3.15.1/back-ends/foma/constructions.c
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/coaccessible.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/define.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/determinize.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/dynarray.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/extract.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/fomalib.h
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/int_stack.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/lex.lexc.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/lex.yy.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/lexcread.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/mem.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/minimize.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/reverse.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/rewrite.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/sigma.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/stack.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/stringhash.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/topsort.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/trie.cc
Examining data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc
Examining data/hfst-3.15.1/back-ends/foma/define.c
Examining data/hfst-3.15.1/back-ends/foma/determinize.c
Examining data/hfst-3.15.1/back-ends/foma/dynarray.c
Examining data/hfst-3.15.1/back-ends/foma/extract.c
Examining data/hfst-3.15.1/back-ends/foma/flags.c
Examining data/hfst-3.15.1/back-ends/foma/foma.c
Examining data/hfst-3.15.1/back-ends/foma/foma.h
Examining data/hfst-3.15.1/back-ends/foma/fomalib.h
Examining data/hfst-3.15.1/back-ends/foma/fomalibconf.h
Examining data/hfst-3.15.1/back-ends/foma/iface.c
Examining data/hfst-3.15.1/back-ends/foma/int_stack.c
Examining data/hfst-3.15.1/back-ends/foma/io.c
Examining data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c
Examining data/hfst-3.15.1/back-ends/foma/lex.interface.c
Examining data/hfst-3.15.1/back-ends/foma/lex.lexc.c
Examining data/hfst-3.15.1/back-ends/foma/lex.yy.c
Examining data/hfst-3.15.1/back-ends/foma/lexc.h
Examining data/hfst-3.15.1/back-ends/foma/lexcread.c
Examining data/hfst-3.15.1/back-ends/foma/mem.c
Examining data/hfst-3.15.1/back-ends/foma/minimize.c
Examining data/hfst-3.15.1/back-ends/foma/regex.c
Examining data/hfst-3.15.1/back-ends/foma/regex.h
Examining data/hfst-3.15.1/back-ends/foma/reverse.c
Examining data/hfst-3.15.1/back-ends/foma/rewrite.c
Examining data/hfst-3.15.1/back-ends/foma/sigma.c
Examining data/hfst-3.15.1/back-ends/foma/spelling.c
Examining data/hfst-3.15.1/back-ends/foma/stack.c
Examining data/hfst-3.15.1/back-ends/foma/stringhash.c
Examining data/hfst-3.15.1/back-ends/foma/structures.c
Examining data/hfst-3.15.1/back-ends/foma/topsort.c
Examining data/hfst-3.15.1/back-ends/foma/trie.c
Examining data/hfst-3.15.1/back-ends/foma/utf8.c
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/accumulator.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/add-on.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/arc-map.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/arc.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/arcfilter.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/arcsort.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/bi-table.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/cache.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/closure.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/compact-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/compat.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/complement.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/compose-filter.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/compose.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/concat.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/config.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/const-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/determinize.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/dfs-visit.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/difference.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/edit-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/encode.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/epsnormalize.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/equal.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/equivalent.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/expanded-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/expectation-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/factor-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/flags.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/float-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/fst-decl.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/fstlib.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/generic-register.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/heap.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/icu.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/intersect.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/interval-set.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/invert.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/label-reachable.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/lexicographic-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/lock.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/log.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/lookahead-filter.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/lookahead-matcher.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/map.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/matcher-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/matcher.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/minimize.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/mutable-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/pair-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/partition.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/power-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/product-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/project.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/properties.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/prune.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/push.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/queue.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/randequivalent.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/randgen.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/random-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/rational.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/register.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/relabel.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/replace-util.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/replace.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/reverse.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/reweight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/rmepsilon.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/rmfinalepsilon.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/shortest-distance.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/shortest-path.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/signed-log-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/slist.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/sparse-power-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/sparse-tuple-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/state-map.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/state-reachable.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/state-table.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/statesort.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/string-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/string.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/symbol-table-ops.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/symbol-table.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/synchronize.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/test-properties.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/topsort.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/tuple-weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/types.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/union-find.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/union.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/unordered_map.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/unordered_set.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/vector-fst.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/verify.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/visit.h
Examining data/hfst-3.15.1/back-ends/openfst/src/include/fst/weight.h
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/compat.cc
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/flags.cc
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/fst.cc
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/properties.cc
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table-ops.cc
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table.cc
Examining data/hfst-3.15.1/back-ends/openfst/src/lib/util.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/accumulator.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/add-on.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/arc-map.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/arc.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/arcfilter.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/arcsort.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/bi-table.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/cache.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/closure.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compact-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compat.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/complement.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compose-filter.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compose.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/concat.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/config.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/const-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/determinize.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/dfs-visit.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/difference.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/edit-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/encode.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/epsnormalize.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/equal.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/equivalent.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/expanded-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/expectation-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/factor-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/flags.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/float-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/fst-decl.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/fstlib.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/generic-register.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/heap.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/icu.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/intersect.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/interval-set.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/invert.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/label-reachable.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/lexicographic-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/lock.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/log.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/lookahead-filter.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/lookahead-matcher.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/map.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/matcher-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/matcher.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/minimize.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/mutable-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/pair-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/partition.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/power-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/product-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/project.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/properties.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/prune.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/push.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/queue.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/randequivalent.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/randgen.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/random-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/rational.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/register.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/relabel.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/replace-util.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/replace.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/reverse.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/reweight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/rmepsilon.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/rmfinalepsilon.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/shortest-distance.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/shortest-path.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/signed-log-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/slist.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/sparse-power-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/sparse-tuple-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/state-map.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/state-reachable.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/state-table.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/statesort.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/string-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/string.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/symbol-table-ops.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/symbol-table.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/synchronize.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/test-properties.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/topsort.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/tuple-weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/types.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/union-find.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/union.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/unordered_map.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/unordered_set.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/vector-fst.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/verify.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/visit.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/weight.h
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/compat.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/flags.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/fst.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/properties.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table-ops.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table.cc
Examining data/hfst-3.15.1/back-ends/openfstwin/src/lib/util.cc
Examining data/hfst-3.15.1/back-ends/sfst/alphabet.cc
Examining data/hfst-3.15.1/back-ends/sfst/alphabet.h
Examining data/hfst-3.15.1/back-ends/sfst/basic.cc
Examining data/hfst-3.15.1/back-ends/sfst/basic.h
Examining data/hfst-3.15.1/back-ends/sfst/compact.cc
Examining data/hfst-3.15.1/back-ends/sfst/compact.h
Examining data/hfst-3.15.1/back-ends/sfst/determinise.cc
Examining data/hfst-3.15.1/back-ends/sfst/fst.cc
Examining data/hfst-3.15.1/back-ends/sfst/fst.h
Examining data/hfst-3.15.1/back-ends/sfst/generate.cc
Examining data/hfst-3.15.1/back-ends/sfst/hopcroft.cc
Examining data/hfst-3.15.1/back-ends/sfst/interface.h
Examining data/hfst-3.15.1/back-ends/sfst/mem.h
Examining data/hfst-3.15.1/back-ends/sfst/operators.cc
Examining data/hfst-3.15.1/back-ends/sfst/sgi.h
Examining data/hfst-3.15.1/back-ends/sfst/utf8.cc
Examining data/hfst-3.15.1/back-ends/sfst/utf8.h
Examining data/hfst-3.15.1/libhfst/src/FormatSpecifiers.h
Examining data/hfst-3.15.1/libhfst/src/HarmonizeUnknownAndIdentitySymbols.cc
Examining data/hfst-3.15.1/libhfst/src/HarmonizeUnknownAndIdentitySymbols.h
Examining data/hfst-3.15.1/libhfst/src/HfstApply.cc
Examining data/hfst-3.15.1/libhfst/src/HfstDataTypes.cc
Examining data/hfst-3.15.1/libhfst/src/HfstDataTypes.h
Examining data/hfst-3.15.1/libhfst/src/HfstEpsilonHandler.cc
Examining data/hfst-3.15.1/libhfst/src/HfstEpsilonHandler.h
Examining data/hfst-3.15.1/libhfst/src/HfstExceptionDefs.cc
Examining data/hfst-3.15.1/libhfst/src/HfstExceptionDefs.h
Examining data/hfst-3.15.1/libhfst/src/HfstExtractStrings.h
Examining data/hfst-3.15.1/libhfst/src/HfstFlagDiacritics.cc
Examining data/hfst-3.15.1/libhfst/src/HfstFlagDiacritics.h
Examining data/hfst-3.15.1/libhfst/src/HfstInputStream.cc
Examining data/hfst-3.15.1/libhfst/src/HfstInputStream.h
Examining data/hfst-3.15.1/libhfst/src/HfstLookupFlagDiacritics.cc
Examining data/hfst-3.15.1/libhfst/src/HfstLookupFlagDiacritics.h
Examining data/hfst-3.15.1/libhfst/src/HfstOutputStream.cc
Examining data/hfst-3.15.1/libhfst/src/HfstOutputStream.h
Examining data/hfst-3.15.1/libhfst/src/HfstPrintDot.cc
Examining data/hfst-3.15.1/libhfst/src/HfstPrintDot.h
Examining data/hfst-3.15.1/libhfst/src/HfstPrintPCKimmo.cc
Examining data/hfst-3.15.1/libhfst/src/HfstPrintPCKimmo.h
Examining data/hfst-3.15.1/libhfst/src/HfstRules.cc
Examining data/hfst-3.15.1/libhfst/src/HfstStrings2FstTokenizer.cc
Examining data/hfst-3.15.1/libhfst/src/HfstStrings2FstTokenizer.h
Examining data/hfst-3.15.1/libhfst/src/HfstSymbolDefs.cc
Examining data/hfst-3.15.1/libhfst/src/HfstSymbolDefs.h
Examining data/hfst-3.15.1/libhfst/src/HfstTokenizer.cc
Examining data/hfst-3.15.1/libhfst/src/HfstTokenizer.h
Examining data/hfst-3.15.1/libhfst/src/HfstTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/HfstTransducer.h
Examining data/hfst-3.15.1/libhfst/src/HfstXeroxRules.cc
Examining data/hfst-3.15.1/libhfst/src/HfstXeroxRules.h
Examining data/hfst-3.15.1/libhfst/src/HfstXeroxRulesTest.cc
Examining data/hfst-3.15.1/libhfst/src/hfst-string-conversions.cc
Examining data/hfst-3.15.1/libhfst/src/hfst-string-conversions.h
Examining data/hfst-3.15.1/libhfst/src/hfst.h
Examining data/hfst-3.15.1/libhfst/src/hfst_apply_schemas.h
Examining data/hfst-3.15.1/libhfst/src/hfstdll.h
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertFomaTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertLogWeightTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertOlTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertSfstTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertTransducerFormat.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertTransducerFormat.h
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertTropicalWeightTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/ConvertXfsmTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransition.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransition.h
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstTransition.h
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstTropicalTransducerTransitionData.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/HfstTropicalTransducerTransitionData.h
Examining data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/MyTransducerLibraryTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/MyTransducerLibraryTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/XfsmTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/XfsmTransducer.h
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectFst.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectFst.h
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectLexicon.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectLexicon.h
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectRule.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectRule.h
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectRulePair.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectRulePair.h
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectUtilities.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/compose_intersect/ComposeIntersectUtilities.h
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/convert.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/convert.h
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/find_epsilon_loops.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/ospell.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.h
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch_tokenize.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch_tokenize.h
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.cc
Examining data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/HfstTwolcDefs.h
Examining data/hfst-3.15.1/libhfst/src/parsers/LexcCompiler.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/LexcCompiler.h
Examining data/hfst-3.15.1/libhfst/src/parsers/PmatchCompiler.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/PmatchCompiler.h
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.h
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstBasic.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstBasic.h
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstCompiler.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstCompiler.h
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstUtf8.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/SfstUtf8.h
Examining data/hfst-3.15.1/libhfst/src/parsers/TwolcCompiler.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/TwolcCompiler.h
Examining data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.h
Examining data/hfst-3.15.1/libhfst/src/parsers/XreCompiler.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/XreCompiler.h
Examining data/hfst-3.15.1/libhfst/src/parsers/alphabet_src/Alphabet.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/alphabet_src/Alphabet.h
Examining data/hfst-3.15.1/libhfst/src/parsers/commandline_src/CommandLine.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/commandline_src/CommandLine.h
Examining data/hfst-3.15.1/libhfst/src/parsers/common_globals.h
Examining data/hfst-3.15.1/libhfst/src/parsers/grammar_defs.h
Examining data/hfst-3.15.1/libhfst/src/parsers/io_src/InputReader.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/io_src/InputReader.h
Examining data/hfst-3.15.1/libhfst/src/parsers/io_src/input_defs.h
Examining data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.h
Examining data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/ConflictResolvingLeftArrowRule.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/ConflictResolvingLeftArrowRule.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/ConflictResolvingRightArrowRule.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/ConflictResolvingRightArrowRule.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/LeftArrowRule.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/LeftArrowRule.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/LeftArrowRuleContainer.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/LeftArrowRuleContainer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/LeftRestrictionArrowRule.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/LeftRestrictionArrowRule.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/OtherSymbolTransducer.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/OtherSymbolTransducer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/RightArrowRule.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/RightArrowRule.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/RightArrowRuleContainer.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/RightArrowRuleContainer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/Rule.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/Rule.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/RuleContainer.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/RuleContainer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/TwolCGrammar.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/rule_src/TwolCGrammar.h
Examining data/hfst-3.15.1/libhfst/src/parsers/string_src/string_manipulation.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/string_src/string_manipulation.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/ConstContainerIterator.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/MatchedConstContainerIterator.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/MixedConstContainerIterator.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/RuleSymbolVector.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/RuleSymbolVector.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/RuleVariables.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/RuleVariables.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/RuleVariablesConstIterator.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/RuleVariablesConstIterator.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableBlock.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableBlockContainer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableContainer.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableContainerBase.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableDefs.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableValueIterator.h
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableValues.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/variable_src/VariableValues.h
Examining data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.h
Examining data/hfst-3.15.1/libhfst/src/parsers/xfst_help_message.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/xfst_help_message.h
Examining data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc
Examining data/hfst-3.15.1/libhfst/src/parsers/xre_utils.h
Examining data/hfst-3.15.1/libhfst/src/string-utils.cc
Examining data/hfst-3.15.1/libhfst/src/string-utils.h
Examining data/hfst-3.15.1/python/config.h
Examining data/hfst-3.15.1/python/hfst_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_file_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_lexc_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_lookup_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_pmatch_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_pmatch_tokenize_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_prolog_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_regex_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_rules_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_sfst_extensions.cpp
Examining data/hfst-3.15.1/python/hfst_xfst_extensions.cpp
Examining data/hfst-3.15.1/python/pypi/config.h
Examining data/hfst-3.15.1/scripts/windows/inttypes.h
Examining data/hfst-3.15.1/scripts/windows/stdint.h
Examining data/hfst-3.15.1/test/libhfst/auxiliary_functions.cc
Examining data/hfst-3.15.1/test/libhfst/test_constructors.cc
Examining data/hfst-3.15.1/test/libhfst/test_examples.cc
Examining data/hfst-3.15.1/test/libhfst/test_flag_diacritics.cc
Examining data/hfst-3.15.1/test/libhfst/test_hfst_basic_transducer.cc
Examining data/hfst-3.15.1/test/libhfst/test_lexc.cc
Examining data/hfst-3.15.1/test/libhfst/test_rules.cc
Examining data/hfst-3.15.1/test/libhfst/test_streams.cc
Examining data/hfst-3.15.1/test/libhfst/test_tokenizer.cc
Examining data/hfst-3.15.1/test/libhfst/test_transducer_functions.cc
Examining data/hfst-3.15.1/tools/src/FunctionalTransducer.cc
Examining data/hfst-3.15.1/tools/src/FunctionalTransducer.h
Examining data/hfst-3.15.1/tools/src/calculate_functions.h
Examining data/hfst-3.15.1/tools/src/generate_model_forms.cc
Examining data/hfst-3.15.1/tools/src/generate_model_forms.h
Examining data/hfst-3.15.1/tools/src/guessify_fst.cc
Examining data/hfst-3.15.1/tools/src/guessify_fst.h
Examining data/hfst-3.15.1/tools/src/hfst-affix-guessify.cc
Examining data/hfst-3.15.1/tools/src/hfst-binary-tool.cc
Examining data/hfst-3.15.1/tools/src/hfst-commandline.cc
Examining data/hfst-3.15.1/tools/src/hfst-commandline.h
Examining data/hfst-3.15.1/tools/src/hfst-compare.cc
Examining data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc
Examining data/hfst-3.15.1/tools/src/hfst-compose.cc
Examining data/hfst-3.15.1/tools/src/hfst-concatenate.cc
Examining data/hfst-3.15.1/tools/src/hfst-conjunct.cc
Examining data/hfst-3.15.1/tools/src/hfst-determinize.cc
Examining data/hfst-3.15.1/tools/src/hfst-disjunct.cc
Examining data/hfst-3.15.1/tools/src/hfst-edit-metadata.cc
Examining data/hfst-3.15.1/tools/src/hfst-eliminate-flags.cc
Examining data/hfst-3.15.1/tools/src/hfst-expand-equivalences.cc
Examining data/hfst-3.15.1/tools/src/hfst-file-to-mem.cc
Examining data/hfst-3.15.1/tools/src/hfst-file-to-mem.h
Examining data/hfst-3.15.1/tools/src/hfst-flookup.cc
Examining data/hfst-3.15.1/tools/src/hfst-format.cc
Examining data/hfst-3.15.1/tools/src/hfst-fst2fst.cc
Examining data/hfst-3.15.1/tools/src/hfst-fst2strings.cc
Examining data/hfst-3.15.1/tools/src/hfst-fst2txt.cc
Examining data/hfst-3.15.1/tools/src/hfst-getopt.cc
Examining data/hfst-3.15.1/tools/src/hfst-getopt.h
Examining data/hfst-3.15.1/tools/src/hfst-grep.cc
Examining data/hfst-3.15.1/tools/src/hfst-guess.cc
Examining data/hfst-3.15.1/tools/src/hfst-guessify.cc
Examining data/hfst-3.15.1/tools/src/hfst-head.cc
Examining data/hfst-3.15.1/tools/src/hfst-info.cc
Examining data/hfst-3.15.1/tools/src/hfst-invert.cc
Examining data/hfst-3.15.1/tools/src/hfst-lexc-compiler.cc
Examining data/hfst-3.15.1/tools/src/hfst-lexc-wrapper.cc
Examining data/hfst-3.15.1/tools/src/hfst-lookup.cc
Examining data/hfst-3.15.1/tools/src/hfst-minimize.cc
Examining data/hfst-3.15.1/tools/src/hfst-multiply.cc
Examining data/hfst-3.15.1/tools/src/hfst-name.cc
Examining data/hfst-3.15.1/tools/src/hfst-optimized-lookup.h
Examining data/hfst-3.15.1/tools/src/hfst-pair-test-commandline.h
Examining data/hfst-3.15.1/tools/src/hfst-pair-test-transducers.h
Examining data/hfst-3.15.1/tools/src/hfst-pair-test.cc
Examining data/hfst-3.15.1/tools/src/hfst-pmatch.cc
Examining data/hfst-3.15.1/tools/src/hfst-pmatch2fst.cc
Examining data/hfst-3.15.1/tools/src/hfst-preprocess-for-optimized-lookup-format.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/alphabet.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/alphabet.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/applicators.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/applicators.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/buffer.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/formatter.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/formatter.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/lookup-path.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/lookup-path.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/lookup-state.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/lookup-state.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/tokenizer.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/tokenizer.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/transducer.cc
Examining data/hfst-3.15.1/tools/src/hfst-proc/transducer.h
Examining data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc
Examining data/hfst-3.15.1/tools/src/hfst-program-options.cc
Examining data/hfst-3.15.1/tools/src/hfst-program-options.h
Examining data/hfst-3.15.1/tools/src/hfst-project.cc
Examining data/hfst-3.15.1/tools/src/hfst-prune-alphabet.cc
Examining data/hfst-3.15.1/tools/src/hfst-push-weights.cc
Examining data/hfst-3.15.1/tools/src/hfst-regexp2fst.cc
Examining data/hfst-3.15.1/tools/src/hfst-remove-epsilons.cc
Examining data/hfst-3.15.1/tools/src/hfst-repeat.cc
Examining data/hfst-3.15.1/tools/src/hfst-reverse.cc
Examining data/hfst-3.15.1/tools/src/hfst-reweight.cc
Examining data/hfst-3.15.1/tools/src/hfst-shuffle.cc
Examining data/hfst-3.15.1/tools/src/hfst-split.cc
Examining data/hfst-3.15.1/tools/src/hfst-strings2fst.cc
Examining data/hfst-3.15.1/tools/src/hfst-strip-header.cc
Examining data/hfst-3.15.1/tools/src/hfst-substitute.cc
Examining data/hfst-3.15.1/tools/src/hfst-subtract.cc
Examining data/hfst-3.15.1/tools/src/hfst-summarize.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/FstBuilder.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/FstBuilder.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/LexicalModelBuilder.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/LexicalModelBuilder.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/ModelBuilder.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/ModelBuilder.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/SequenceModelBuilder.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/SequenceModelBuilder.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/TaggerBuilder.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/TaggerBuilder.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/WeightedStringVectorCollection.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/WeightedStringVectorCollection.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/string_handling.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/build_model_src/string_handling.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-build-tagger.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-open-input-file-for-tagger.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-reweight-tagger.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-tag.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-train-tagger-system.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/unit_test_aux.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/unit_test_aux.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/AcyclicAutomaton.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/AcyclicAutomaton.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/DataTypes.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/DelayedSequenceModelComponent.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/DelayedSequenceModelComponent.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/NewLexicalModel.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/NewLexicalModel.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SentenceTagger.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SentenceTagger.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SentenceTransducer.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SentenceTransducer.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SequenceModelComponent.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SequenceModelComponent.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SequenceModelComponentPair.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SequenceModelComponentPair.h
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SequenceTagger.cc
Examining data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SequenceTagger.h
Examining data/hfst-3.15.1/tools/src/hfst-tail.cc
Examining data/hfst-3.15.1/tools/src/hfst-tokenize.cc
Examining data/hfst-3.15.1/tools/src/hfst-tool-metadata.cc
Examining data/hfst-3.15.1/tools/src/hfst-tool-metadata.h
Examining data/hfst-3.15.1/tools/src/hfst-traverse.cc
Examining data/hfst-3.15.1/tools/src/hfst-twolc/src/doxygen_src/hfst_twolc_doxygen_header.h
Examining data/hfst-3.15.1/tools/src/hfst-twolc/src/hfst-twolc-system.cc
Examining data/hfst-3.15.1/tools/src/hfst-twolc/src/hfst-twolc.cc
Examining data/hfst-3.15.1/tools/src/hfst-twolc/src/htwolcpre1-main.cc
Examining data/hfst-3.15.1/tools/src/hfst-twolc/src/htwolcpre2-main.cc
Examining data/hfst-3.15.1/tools/src/hfst-twolc/src/htwolcpre3-main.cc
Examining data/hfst-3.15.1/tools/src/hfst-txt2fst.cc
Examining data/hfst-3.15.1/tools/src/hfst-unary-tool.cc
Examining data/hfst-3.15.1/tools/src/inc/check-params-binary.h
Examining data/hfst-3.15.1/tools/src/inc/check-params-common.h
Examining data/hfst-3.15.1/tools/src/inc/check-params-unary.h
Examining data/hfst-3.15.1/tools/src/inc/getopt-cases-binary.h
Examining data/hfst-3.15.1/tools/src/inc/getopt-cases-common.h
Examining data/hfst-3.15.1/tools/src/inc/getopt-cases-error.h
Examining data/hfst-3.15.1/tools/src/inc/getopt-cases-unary.h
Examining data/hfst-3.15.1/tools/src/inc/globals-binary.h
Examining data/hfst-3.15.1/tools/src/inc/globals-common.h
Examining data/hfst-3.15.1/tools/src/inc/globals-unary.h
Examining data/hfst-3.15.1/tools/src/lexc-readline-ui.cc
Examining data/hfst-3.15.1/tools/src/parsers/abbrcmd.h
Examining data/hfst-3.15.1/tools/src/parsers/cmd.h
Examining data/hfst-3.15.1/tools/src/parsers/hfst-xfst.cc
Examining data/hfst-3.15.1/tools/src/parsers/init_help.cc
Examining data/hfst-3.15.1/tools/src/parsers/name2cmd.h
Examining data/hfst-3.15.1/tools/src/parsers/xfst_commands.h
Examining data/hfst-3.15.1/tools/src/sfst-main.cc
Examining data/hfst-3.15.1/tools/src/test.cc
Examining data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc

FINAL RESULTS:

data/hfst-3.15.1/back-ends/foma/apply.c:987: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(h->outstring+h->opos, astring);
data/hfst-3.15.1/back-ends/foma/apply.c:990: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(h->outstring+h->opos, astring);
data/hfst-3.15.1/back-ends/foma/apply.c:992: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(h->outstring+h->opos+alen,h->separator);
data/hfst-3.15.1/back-ends/foma/apply.c:994: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(h->outstring+h->opos+alen+strlen(h->separator),bstring);
data/hfst-3.15.1/back-ends/foma/apply.c:1029:6:  [4] (buffer) strcpy:
  Does 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->outstring+h->opos+1, astring);
data/hfst-3.15.1/back-ends/foma/apply.c:1031:6:  [4] (buffer) strcpy:
  Does 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->outstring+h->opos+alen+1,h->separator);
data/hfst-3.15.1/back-ends/foma/apply.c:1033:6:  [4] (buffer) strcpy:
  Does 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->outstring+h->opos+alen+1+strlen(h->separator), bstring);
data/hfst-3.15.1/back-ends/foma/apply.c:1061: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(h->outstring+h->opos+len, h->space_symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:987: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(h->outstring+h->opos, astring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:990: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(h->outstring+h->opos, astring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:992: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(h->outstring+h->opos+alen,h->separator);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:994: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(h->outstring+h->opos+alen+strlen(h->separator),bstring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1029:6:  [4] (buffer) strcpy:
  Does 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->outstring+h->opos+1, astring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1031:6:  [4] (buffer) strcpy:
  Does 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->outstring+h->opos+alen+1,h->separator);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1033:6:  [4] (buffer) strcpy:
  Does 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->outstring+h->opos+alen+1+strlen(h->separator), bstring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1061: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(h->outstring+h->opos+len, h->space_symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:150: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(string, flag_type_to_char(type));
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:152: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(string, name);
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:155: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(string, value);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:66:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *str, size_t size, const char *format, ...);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1711:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpstr,"/usr/bin/open -a Graphviz %s &",dotname);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1712:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(tmpstr) == -1)
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1719:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpstr,"dot -Tpng %s > %s ",dotname,pngname);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1720:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(tmpstr) == -1)
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1722:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpstr,"/usr/bin/xdg-open %s 2>/dev/null &",pngname);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1723:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(tmpstr) == -1)
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:161: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(identifier, net->name);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:639: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(d->net->name, d->name);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:768:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(buf, "%i %i %i %i %i %lld %i %i %i %i %i %i %s", &net->arity, &net->arccount, &net->statecount, &net->linecount, &net->finalcount, &net->pathcount, &net->is_deterministic, &net->is_pruned, &net->is_minimized, &net->is_epsilon_free, &net->is_loop_free, &extras, buf);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:770:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(buf, "%i %i %i %i %i "LONG_LONG_SPECIFIER" %i %i %i %i %i %i %s", &net->arity, &net->arccount, &net->statecount, &net->linecount, &net->finalcount, &net->pathcount, &net->is_deterministic, &net->is_pruned, &net->is_minimized, &net->is_epsilon_free, &net->is_loop_free, &extras, buf);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:772: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(net->name, buf);
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9156:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   func_name = strcpy(func_name, interfacetext);
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9199:42:  [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).
{ tempstr = rep_func_arg(interfacetext); strcat(funcdef, tempstr); xxfree(tempstr); tempstr = NULL;}
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9205: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9211: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9217: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9222: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(funcdef, interfacetext); add_defined_function(g_defines_f, func_name, funcdef, (func_arg_no-1));clear_func_args(); xxfree(func_name); BEGIN(INITIAL); }
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9227: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9505:9:  [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.
  ret = system(interfacetext);
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.yy.cc:1757: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(newregex, regex);
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:1363:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/hfst-3.15.1/back-ends/foma/cpp-version/sigma.cc:148: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(sigma_splice->symbol, symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/sigma.cc:157: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(sigma->symbol, symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:73:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            printptr += sprintf(medh->outstring+printptr,"%s", print_sym(sym, sigma));
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:77:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		printptr += sprintf(medh->outstring+printptr,"%s",medh->align_symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:100:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            printptr += sprintf(medh->instring+printptr,"%s", print_sym(sym, sigma));
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:105:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		printptr += sprintf(medh->instring+printptr,"%s",medh->align_symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:30:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(s,"%i.%i.%i%s",MAJOR_VERSION,MINOR_VERSION,BUILD_VERSION,STATUS_VERSION);
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:234: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(fsm->name, name);
data/hfst-3.15.1/back-ends/foma/flags.c:150: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(string, flag_type_to_char(type));
data/hfst-3.15.1/back-ends/foma/flags.c:152: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(string, name);
data/hfst-3.15.1/back-ends/foma/flags.c:155: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(string, value);
data/hfst-3.15.1/back-ends/foma/iface.c:66:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *str, size_t size, const char *format, ...);
data/hfst-3.15.1/back-ends/foma/iface.c:1711:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpstr,"/usr/bin/open -a Graphviz %s &",dotname);
data/hfst-3.15.1/back-ends/foma/iface.c:1712:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(tmpstr) == -1)
data/hfst-3.15.1/back-ends/foma/iface.c:1719:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpstr,"dot -Tpng %s > %s ",dotname,pngname);
data/hfst-3.15.1/back-ends/foma/iface.c:1720:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(tmpstr) == -1)
data/hfst-3.15.1/back-ends/foma/iface.c:1722:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpstr,"/usr/bin/xdg-open %s 2>/dev/null &",pngname);
data/hfst-3.15.1/back-ends/foma/iface.c:1723:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(tmpstr) == -1)
data/hfst-3.15.1/back-ends/foma/io.c:161: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(identifier, net->name);
data/hfst-3.15.1/back-ends/foma/io.c:639: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(d->net->name, d->name);
data/hfst-3.15.1/back-ends/foma/io.c:768:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(buf, "%i %i %i %i %i %lld %i %i %i %i %i %i %s", &net->arity, &net->arccount, &net->statecount, &net->linecount, &net->finalcount, &net->pathcount, &net->is_deterministic, &net->is_pruned, &net->is_minimized, &net->is_epsilon_free, &net->is_loop_free, &extras, buf);
data/hfst-3.15.1/back-ends/foma/io.c:770:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(buf, "%i %i %i %i %i "LONG_LONG_SPECIFIER" %i %i %i %i %i %i %s", &net->arity, &net->arccount, &net->statecount, &net->linecount, &net->finalcount, &net->pathcount, &net->is_deterministic, &net->is_pruned, &net->is_minimized, &net->is_epsilon_free, &net->is_loop_free, &extras, buf);
data/hfst-3.15.1/back-ends/foma/io.c:772: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(net->name, buf);
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9156:16:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   func_name = strcpy(func_name, interfacetext);
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9199:42:  [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).
{ tempstr = rep_func_arg(interfacetext); strcat(funcdef, tempstr); xxfree(tempstr); tempstr = NULL;}
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9205: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9211: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9217: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9222: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(funcdef, interfacetext); add_defined_function(g_defines_f, func_name, funcdef, (func_arg_no-1));clear_func_args(); xxfree(func_name); BEGIN(INITIAL); }
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9227: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(funcdef, interfacetext); }
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9505:9:  [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.
  ret = system(interfacetext);
data/hfst-3.15.1/back-ends/foma/lex.yy.c:1756: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(newregex, regex);
data/hfst-3.15.1/back-ends/foma/regex.c:1361:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/hfst-3.15.1/back-ends/foma/sigma.c:148: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(sigma_splice->symbol, symbol);
data/hfst-3.15.1/back-ends/foma/sigma.c:157: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(sigma->symbol, symbol);
data/hfst-3.15.1/back-ends/foma/spelling.c:73:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            printptr += sprintf(medh->outstring+printptr,"%s", print_sym(sym, sigma));
data/hfst-3.15.1/back-ends/foma/spelling.c:77:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		printptr += sprintf(medh->outstring+printptr,"%s",medh->align_symbol);
data/hfst-3.15.1/back-ends/foma/spelling.c:100:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            printptr += sprintf(medh->instring+printptr,"%s", print_sym(sym, sigma));
data/hfst-3.15.1/back-ends/foma/spelling.c:105:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		printptr += sprintf(medh->instring+printptr,"%s",medh->align_symbol);
data/hfst-3.15.1/back-ends/foma/structures.c:30:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(s,"%i.%i.%i%s",MAJOR_VERSION,MINOR_VERSION,BUILD_VERSION,STATUS_VERSION);
data/hfst-3.15.1/back-ends/foma/structures.c:234: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(fsm->name, name);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h:134:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  SccVisitor(vector<StateId> *scc, vector<bool> *access,
data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h:136:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      : scc_(scc), access_(access), coaccess_(coaccess), props_(props) {}
data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h:304:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  vector<bool> access;
data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h:307:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  SccVisitor<Arc> scc_visitor(0, &access, &coaccess, &props);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h:310:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  for (StateId s = 0; s < access.size(); ++s)
data/hfst-3.15.1/back-ends/openfst/src/include/fst/connect.h:311:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access[s] || !coaccess[s])
data/hfst-3.15.1/back-ends/openfst/src/include/fst/rmfinalepsilon.h:39:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  vector<bool> access;
data/hfst-3.15.1/back-ends/openfst/src/include/fst/rmfinalepsilon.h:42:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  SccVisitor<A> scc_visitor(0, &access, &coaccess, &props);
data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table.cc:115: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(csymbol, symbol.c_str());
data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table.cc:173: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(csymbol, symbol.c_str());
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compat.h:27: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.
#define snprintf _snprintf
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compat.h:27:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h:134:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  SccVisitor(vector<StateId> *scc, vector<bool> *access,
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h:136:28:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      : scc_(scc), access_(access), coaccess_(coaccess), props_(props) {}
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h:304:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  vector<bool> access;
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h:307:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  SccVisitor<Arc> scc_visitor(0, &access, &coaccess, &props);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h:310:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  for (StateId s = 0; s < access.size(); ++s)
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/connect.h:311:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access[s] || !coaccess[s])
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/rmfinalepsilon.h:42:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  vector<bool> access;
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/rmfinalepsilon.h:45:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  SccVisitor<A> scc_visitor(0, &access, &coaccess, &props);
data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table.cc:114: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(csymbol, symbol.c_str());
data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table.cc:178: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(csymbol, symbol.c_str());
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:224:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message, "Error: reinserting symbol '%s' in alphabet with incompatible character value %u %u", symbol, (unsigned)sc, (unsigned)c);
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:239:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(message,"Error: defining symbol %s as character %d (previously defined as %s)", symbol, (unsigned)c, s);
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:557:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,"Error: incomplete symbol in input file: %s", string);
data/hfst-3.15.1/back-ends/sfst/basic.cc:37: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(pStringCopy, pString);
data/hfst-3.15.1/libhfst/src/HfstPrintDot.cc:24: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.
#define snprintf c99_snprintf
data/hfst-3.15.1/libhfst/src/HfstPrintDot.cc:25:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf c99_vsnprintf
data/hfst-3.15.1/libhfst/src/hfst-string-conversions.cc:23:17:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        int r = vsprintf(buffer, format, args);
data/hfst-3.15.1/libhfst/src/hfst-string-conversions.cc:45:22:  [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 retval = vfprintf(stream, format, args);
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:920:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(buf, "%i %i %i %i %i " LONG_LONG_SPECIFIER " %i %i %i %i %i %i %s",
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1017:20:  [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.
           int n = sscanf(line.c_str(), "network(%s", namearr);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1231:20:  [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.
           int n = sscanf(line.c_str(), "symbol(%[^,], %s", namearr, symbolarr);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1539:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                   cw = sprintf(ptr + cwt, "%i\t%i\t%s\t%s",
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1615:20:  [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.
           int n = sscanf(line, "%s%s%s%s%s", a1, a2, a3, a4, a5);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1149:20:  [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.
           int n = sscanf(line.c_str(), "network(%s", namearr);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1363:20:  [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.
           int n = sscanf(line.c_str(), "symbol(%[^,], %s", namearr, symbolarr);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1669:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                   cw = sprintf(ptr + cwt, "%i\t%i\t%s\t%s",
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1745:20:  [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.
           int n = sscanf(line, "%s%s%s%s%s", a1, a2, a3, a4, a5);
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:741: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.
        int n = sscanf(line, "%s\t%s\t%s\t%s\t%s", a1, a2, a3, a4, a5);
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:912: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.
        int n = sscanf(line, "%s\t%s\t%s\t%s\t%s", a1, a2, a3, a4, a5);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.cc:302: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(cstr_for_encoder, sym.c_str());
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:114:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(message, "Error: reinserting symbol '%s' in alphabet with incompatible character value %u %u", symbol, (unsigned)sc, (unsigned)c);
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:129:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,"Error: defining symbol %s as character %d (previously defined as %s)", symbol, (unsigned)c, s);
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:254:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer,"Error: incomplete symbol in input file: %s", string);
data/hfst-3.15.1/libhfst/src/parsers/SfstBasic.cc:26: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(pStringCopy, pString);
data/hfst-3.15.1/libhfst/src/parsers/SfstCompiler.cc:647:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(message,"Error: Cannot open file \"%s\"!", filestr.c_str());
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:2078: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.
  XfstCompiler::system(const char* command)
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:2087:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      int rv = ::system(command);
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:3524:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (::system(("dot -Tpng " + std::string(dotfilename) + " > " + std::string(pngfilename) + " 2> /dev/null" ).c_str()) != 0)
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:3535:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (::system(("/usr/bin/xdg-open " + std::string(pngfilename) + " 2> /dev/null &").c_str()) != 0)
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.h:174: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.
  XfstCompiler& system(const char* command);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:229:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      (void)sprintf(filenames_lines_cols, "%s:%d.%d",
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:235:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(filenames_lines_cols, "%s:%d.%d-%d",
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:243:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(filenames_lines_cols, "%s:%d.%d-%d.%d",
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:261:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(error_token, "[near: `%s\\n']", beforelbr);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:266:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(error_token, "[near: `%s']", hlexctext);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:270:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(error_token, "[near: `%30s...' (truncated)]",
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:871:23:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                      strcpy(r, utf8_char.c_str());
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:888:23:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                      strcpy(r, utf8_char.c_str());
data/hfst-3.15.1/libhfst/src/parsers/string_src/string_manipulation.cc:18:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  return strcpy(new_str,str);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:78:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(error_token, "[near: `%s\\n']", beforelbr);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:83:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(error_token, "[near: `%s']", hxfsttext);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:87:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void)sprintf(error_token, "[near: `%30s...' (truncated)]",
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:68:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      int n = sprintf(buffer, "*** xre parsing failed: %s\n", msg);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:71:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          n = sprintf(buffer+n, "***    parsing %s [near %s] on line %u\n%c", hfst::xre::data,
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:76:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          n = sprintf(buffer+n, "***    parsing %60s [near %s] on line %u...\n%c",
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:92:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void) sprintf(buffer, "*** xre parsing failed: %s\n", msg);
data/hfst-3.15.1/test/libhfst/test_streams.cc:67:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      assert(system("diff transducer2.att transducer.att") == 0);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:77:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:98:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:118:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, fmt, ap);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:146:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        if ((sprintf(debug_name, "DEBUG %s", name)) > 0 )
data/hfst-3.15.1/tools/src/hfst-commandline.cc:171:7:  [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/hfst-3.15.1/tools/src/hfst-commandline.cc:184:7:  [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(message_out, fmt, ap);
data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc:409:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        if (sprintf(composed_name, "compose(%s, intersect(%s))",
data/hfst-3.15.1/tools/src/hfst-flookup.cc:296: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(message_out,
data/hfst-3.15.1/tools/src/hfst-flookup.cc:683: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).
                p = strcpy(p, space_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:688: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).
                p = strcpy(p, epsilon_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:695: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).
                    p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-flookup.cc:701: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).
                p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-flookup.cc:726: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).
                p = strcpy(p, space_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:731: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).
                p = strcpy(p, epsilon_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:738: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).
                    p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-flookup.cc:744: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).
                p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-lookup.cc:679: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).
                p = strcpy(p, space_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:684: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).
                p = strcpy(p, epsilon_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:691: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).
                    p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-lookup.cc:697: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).
                p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-lookup.cc:722: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).
                p = strcpy(p, space_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:727: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).
                p = strcpy(p, epsilon_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:734: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).
                    p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-lookup.cc:740: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).
                p = strcpy(p, s->c_str());
data/hfst-3.15.1/tools/src/hfst-split.cc:155:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(outfilename, "%s" SIZE_T_SPECIFIER "%s", prefix, transducer_n,
data/hfst-3.15.1/tools/src/hfst-substitute.cc:787:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            if (sprintf(composed_name, "substitute-from-%s",
data/hfst-3.15.1/tools/src/hfst-substitute.cc:797:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            if (sprintf(composed_name, "♲%s",
data/hfst-3.15.1/tools/src/hfst-substitute.cc:811:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            if (sprintf(composed_name, "substitute-%s-with-%s",
data/hfst-3.15.1/tools/src/hfst-substitute.cc:822:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            if (sprintf(composed_name, "%s ♲ %s",
data/hfst-3.15.1/tools/src/hfst-substitute.cc:840:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            if (sprintf(composed_name, "substitute-%s-with-net-%s",
data/hfst-3.15.1/tools/src/hfst-substitute.cc:851:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            if (sprintf(composed_name, "%s ♲ %s",
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-train-tagger-system.cc:19:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(command,
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-train-tagger-system.cc:27:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  int retval = system(command);
data/hfst-3.15.1/tools/src/hfst-twolc/src/hfst-twolc-system.cc:19:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(command,
data/hfst-3.15.1/tools/src/hfst-twolc/src/hfst-twolc-system.cc:27:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  int retval = system(command);
data/hfst-3.15.1/back-ends/dlfcn/dlfcn.c:217:19:  [3] (misc) LoadLibraryEx:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
        hModule = LoadLibraryEx( (LPSTR) lpFileName, NULL,
data/hfst-3.15.1/back-ends/foma/apply.c:274: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 int) time(NULL));
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:274: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 int) time(NULL));
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:122: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 int)time(NULL));
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:127:19:  [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 ((opt = getopt(argc, argv, "e:f:hl:pqrsv")) != -1) {
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1339:38:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void iface_pairs_call(int limit, int random) {
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1705:28:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  dotname = strncpy(tmpstr,tempnam(NULL,"foma"), 250);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1718:22:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  pngname = xxstrdup(tempnam(NULL, "foma"));
data/hfst-3.15.1/back-ends/foma/foma.c:122: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 int)time(NULL));
data/hfst-3.15.1/back-ends/foma/foma.c:127:19:  [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 ((opt = getopt(argc, argv, "e:f:hl:pqrsv")) != -1) {
data/hfst-3.15.1/back-ends/foma/iface.c:1339:38:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
void iface_pairs_call(int limit, int random) {
data/hfst-3.15.1/back-ends/foma/iface.c:1705:28:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  dotname = strncpy(tmpstr,tempnam(NULL,"foma"), 250);
data/hfst-3.15.1/back-ends/foma/iface.c:1718:22:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  pngname = xxstrdup(tempnam(NULL, "foma"));
data/hfst-3.15.1/back-ends/openfst/src/include/fst/randgen.h:52:44:  [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.
  UniformArcSelector(int seed = time(0)) { srand(seed); }
data/hfst-3.15.1/back-ends/openfst/src/include/fst/randgen.h:75:44:  [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.
  LogProbArcSelector(int seed = time(0)) { srand(seed); }
data/hfst-3.15.1/back-ends/openfst/src/include/fst/random-weight.h:54: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(seed);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/random-weight.h:86: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(seed);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/random-weight.h:119: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(seed);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/random-weight.h:153:6:  [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(seed);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/random-weight.h:295: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(seed);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/randgen.h:52:44:  [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.
  UniformArcSelector(int seed = time(0)) { srand(seed); }
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/randgen.h:75:44:  [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.
  LogProbArcSelector(int seed = time(0)) { srand(seed); }
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/random-weight.h:54: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(seed);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/random-weight.h:86: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(seed);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/random-weight.h:119: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(seed);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/random-weight.h:153:6:  [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(seed);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/random-weight.h:295: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(seed);
data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.cc:900: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 int)(time(0)));
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:3002: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 int)(time(0)));
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:3509:26:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    char * dotfilename = tempnam(NULL, "hfst");
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:3510:26:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
    char * pngfilename = tempnam(NULL, "hfst");
data/hfst-3.15.1/libhfst/src/parsers/commandline_src/CommandLine.cc:125:15:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv,
data/hfst-3.15.1/test/libhfst/test_constructors.cc:68:40:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      FILE * file = fopen((std::string(getenv("srcdir")) +
data/hfst-3.15.1/test/libhfst/test_lexc.cc:14: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.
   const char* srcdirc = getenv("srcdir");
data/hfst-3.15.1/test/libhfst/test_streams.cc:30:40:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      FILE * file = fopen((std::string(getenv("srcdir")) +
data/hfst-3.15.1/tools/src/hfst-affix-guessify.cc:114:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-binary-tool.cc:81:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-commandline.cc:891:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char* hfstopts = getenv("HFST_OPTIONS");
data/hfst-3.15.1/tools/src/hfst-compare.cc:106:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc:122:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-compose.cc:108:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-concatenate.cc:99:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-conjunct.cc:98:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-determinize.cc:95:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-disjunct.cc:97:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-edit-metadata.cc:109:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-eliminate-flags.cc:93:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-expand-equivalences.cc:122:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-flookup.cc:339:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-format.cc:97:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-fst2fst.cc:128:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-fst2strings.cc:170:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-fst2txt.cc:124:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-getopt.cc:24:5:  [3] (buffer) getopt_long:
  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_long(int argc, char * /*const*/ argv [], const char * optstring,
data/hfst-3.15.1/tools/src/hfst-getopt.h:17:5:  [3] (buffer) getopt_long:
  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_long(int argc, char * /*const*/ argv [], const char * optstring,
data/hfst-3.15.1/tools/src/hfst-grep.cc:270:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-guess.cc:159:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-guessify.cc:134:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-head.cc:101:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-info.cc:137:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-invert.cc:89:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-lexc-compiler.cc:148:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-lexc-wrapper.cc:118:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-lookup.cc:348:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-minimize.cc:97:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-multiply.cc:96:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-name.cc:99:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:139:11:  [3] (buffer) getopt_long:
  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.
      c = getopt_long(argc, argv, "hVvqsewb:t:uxfn:p::", long_options, &option_index);
data/hfst-3.15.1/tools/src/hfst-pair-test-commandline.h:223:15:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc,argv,":SR:do:vhVi:sqa:n:p:",
data/hfst-3.15.1/tools/src/hfst-pair-test.cc:174:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-pmatch.cc:290:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT HFST_GETOPT_UNARY_SHORT "nxlwcdmb:r:W:t:p",
data/hfst-3.15.1/tools/src/hfst-pmatch2fst.cc:142:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-preprocess-for-optimized-lookup-format.cc:90:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:210:13:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, "hVvqjsagndtpxCkeWrN:l:cwzX", long_options, &option_index);
data/hfst-3.15.1/tools/src/hfst-project.cc:95:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-prune-alphabet.cc:97:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-push-weights.cc:96:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-regexp2fst.cc:166:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-remove-epsilons.cc:89:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-repeat.cc:103:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-reverse.cc:89:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-reweight.cc:162:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-shuffle.cc:89:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-split.cc:106:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT "i:p:e:",
data/hfst-3.15.1/tools/src/hfst-strings2fst.cc:203:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-strip-header.cc:66:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-substitute.cc:223:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-subtract.cc:99:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-summarize.cc:103:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-build-tagger.cc:67:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-open-input-file-for-tagger.cc:76:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-reweight-tagger.cc:84:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-tag.cc:78:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-tail.cc:100:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-tokenize.cc:427:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT "nkawWmub:t:l:zixcSgCfL",
data/hfst-3.15.1/tools/src/hfst-traverse.cc:140:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-txt2fst.cc:121:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/hfst-unary-tool.cc:85:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/tools/src/parsers/hfst-xfst.cc:136:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT "f:F:e:E:l:p::rwkR",
data/hfst-3.15.1/tools/src/sfst-main.cc:86:17:  [3] (buffer) getopt_long:
  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 c = getopt_long(argc, argv, HFST_GETOPT_COMMON_SHORT
data/hfst-3.15.1/back-ends/dlfcn/dlfcn.c:108: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 error_buffer[65535];
data/hfst-3.15.1/back-ends/dlfcn/dlfcn.c:163: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 ptr_buf[19]; /* 0x<pointer> up to 64 bits. */
data/hfst-3.15.1/back-ends/dlfcn/dlfcn.c:165: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( ptr_buf, "0x%p", ptr );
data/hfst-3.15.1/back-ends/dlfcn/dlfcn.c:197: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 lpFileName[MAX_PATH];
data/hfst-3.15.1/back-ends/foma/apply.c:1017:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(h->outstring+h->opos, pstring, len);
data/hfst-3.15.1/back-ends/foma/apply.c:1057:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(h->outstring+h->opos, pstring, len);
data/hfst-3.15.1/back-ends/foma/constructions.c:74: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 *in, *out, *currin, *currout, tmpin[128], tmpout[128];
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1017:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(h->outstring+h->opos, pstring, len);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1057:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(h->outstring+h->opos, pstring, len);
data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc:74: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 *in, *out, *currin, *currout, tmpin[128], tmpout[128];
data/hfst-3.15.1/back-ends/foma/cpp-version/determinize.cc:769: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(set_table+set_table_offset, set, setsize * sizeof(int));
data/hfst-3.15.1/back-ends/foma/cpp-version/dynarray.cc:450: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(net->name, "%X",rand());
data/hfst-3.15.1/back-ends/foma/cpp-version/dynarray.cc:459: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(net->name, "%X",rand());
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc: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 no_readline_line[512];
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:118: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 *scriptfile, prompt[50];
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:179: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(prompt, "foma[%i]: ",stack_size());
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:181: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(prompt, "apply down> ");
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:183: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(prompt, "apply up> ");
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:185: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(prompt, "apply med> ");
data/hfst-3.15.1/back-ends/foma/cpp-version/fomalib.h:125: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 name[40];
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:396: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 *result, inword[LINE_LIMIT];
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:405: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).
    INFILE = fopen(infilename, "r");
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:415: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).
        OUTFILE = fopen(outfilename, "w");
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:581:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return(atoi(s+i));
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:741:27:  [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).
                outfile = fopen(filename,"w");
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1067:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            printf("%-17.17s: %s\n",global_vars[i].name, *((char **)(global_vars[i].ptr)) );
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1101: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.
                *((char **)(global_vars[i].ptr)) = xxstrdup(value);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1255: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).
	if ((outfile = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1388: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).
	if ((outfile = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1426: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).
        outfile = fopen(filename, "w");
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1484: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).
      if ((out = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1562: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 size[20];
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1574: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(size, "%i bytes. ", s);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1576: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(size, "%.1f kB. ", sf/1024);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1578: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(size, "%.1f MB. ", sf/1048576);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1580: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(size, "%.1f GB. ", sf/1073741824);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1644: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).
        dotfile = fopen(filename,"w");
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1699: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 tmpstr[255];
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1706: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(dotname, ".dot");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:143: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 *outstring, *instring, identifier[100];
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:148: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).
    if ((out = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:253: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 inword[1024], delimiters[] = "\t", *tokens[6];
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:256: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).
    INFILE = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:287:38:  [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).
            fsm_construct_add_arc(h, atoi(tokens[0]), atoi(tokens[1]), tokens[2], tokens[3]);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:287: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).
            fsm_construct_add_arc(h, atoi(tokens[0]), atoi(tokens[1]), tokens[2], tokens[3]);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:290:39:  [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).
            fsm_construct_set_final(h,atoi(tokens[0]));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:302: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 [1024], temp [1024], in [128], out[128], *temp_ptr, *temp_ptr2;
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:309: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).
    prolog_file = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:338:36:  [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).
	    fsm_construct_set_final(outh, atoi(temp));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:370:15:  [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).
	    source = atoi(temp);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:378:15:  [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).
	    target = atoi(temp);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:398:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(in,"@_IDENTITY_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:401:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(in,"@_UNKNOWN_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:404:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(out,"@_UNKNOWN_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:407:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(in,"@_EPSILON_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:410:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(out,"@_EPSILON_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:671:31:  [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).
            *(values+items) = atoi(buf+i);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:676:31:  [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).
            *(values+items) = atoi(buf+i);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:738: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[READ_BUF_SIZE];
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:1000: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 bytes[4];
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:1004: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).
    infile = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:1021: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).
    infile = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:1070: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).
    infile = fopen(name, "r");
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1110:36:  [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).
  cmatrix_default_substitute(mnet, atoi(cmatrixtext));
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1118:32:  [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).
  cmatrix_default_delete(mnet, atoi(cmatrixtext));
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1126:32:  [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).
  cmatrix_default_insert(mnet, atoi(cmatrixtext));
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1134: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).
  currcost = atoi(cmatrixtext);
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:7756: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 funcdef[16384];
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:7820: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(argstr, "@ARGUMENT%02i@", fa->argno);
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9332: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).
  if ((interfacein = fopen(trim(interfacetext), "r" )) != NULL) {
data/hfst-3.15.1/back-ends/foma/cpp-version/lexcread.cc: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 tmpstring[5];
data/hfst-3.15.1/back-ends/foma/cpp-version/mem.cc:55: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(r, s, n);
data/hfst-3.15.1/back-ends/foma/cpp-version/mem.cc:100: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, s, size);
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:86: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 *fname[MAX_F_RECURSION];             /* Function names */
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:108: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 repstr[13], oldstr[13];
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:119: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(repstr,"%012X",g_internal_sym);
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:120: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(oldstr, "@ARGUMENT%02i@", (i+1));
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:129: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(repstr,"%012X",mygsym);
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:1677:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:1934:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:2770:57:  [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).
    { (yyval.net) = fsm_concat_n((yyvsp[(1) - (2)].net),atoi((yyvsp[(2) - (2)].string))); }
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:2777:79:  [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).
    { (yyval.net) = fsm_concat(fsm_concat_n(fsm_copy((yyvsp[(1) - (2)].net)), atoi((yyvsp[(2) - (2)].string))),fsm_kleene_plus(fsm_copy((yyvsp[(1) - (2)].net)))); fsm_destroy((yyvsp[(1) - (2)].net)); }
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:2784:61:  [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).
    { (yyval.net) = fsm_concat_m_n((yyvsp[(1) - (2)].net),0,atoi((yyvsp[(2) - (2)].string))-1); }
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:2791:59:  [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).
    { (yyval.net) = fsm_concat_m_n((yyvsp[(1) - (2)].net),atoi((yyvsp[(2) - (2)].string)),atoi(strstr((yyvsp[(2) - (2)].string),",")+1)); }
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:2791:91:  [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).
    { (yyval.net) = fsm_concat_m_n((yyvsp[(1) - (2)].net),atoi((yyvsp[(2) - (2)].string)),atoi(strstr((yyvsp[(2) - (2)].string),",")+1)); }
data/hfst-3.15.1/back-ends/foma/cpp-version/rewrite.cc: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 (*namestrings)[8];
data/hfst-3.15.1/back-ends/foma/cpp-version/rewrite.cc:106:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    rb->namestrings = (char (*)[8])xxmalloc(sizeof rb->namestrings * num_rules);
data/hfst-3.15.1/back-ends/foma/cpp-version/rewrite.cc:108: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(rb->namestrings[i], "@#%04i@", i+1);
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:113: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.
		printptr += sprintf(medh->instring+printptr,"%.*s", utf8skip(word+i)+1, word+i);
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:234: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 temputf[5] ;
data/hfst-3.15.1/back-ends/foma/cpp-version/stack.cc:51: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(fsm->name, "%X",rand());
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:29: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 s[20];
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc: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 repstr[13];
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:588: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(repstr,"%012X",newsym++);
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:608: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 repstr[13];
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:627: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(repstr,"%012X",newsym++);
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:793: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(net_copy, net, sizeof(struct fsm));
data/hfst-3.15.1/back-ends/foma/cpp-version/structures.cc:805:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(new_fsm_state, fsm_state, linecount*sizeof(struct fsm_state));
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:147: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, newstring, len);
data/hfst-3.15.1/back-ends/foma/determinize.c:769: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(set_table+set_table_offset, set, setsize * sizeof(int));
data/hfst-3.15.1/back-ends/foma/dynarray.c:450: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(net->name, "%X",rand());
data/hfst-3.15.1/back-ends/foma/dynarray.c:459: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(net->name, "%X",rand());
data/hfst-3.15.1/back-ends/foma/foma.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 no_readline_line[512];
data/hfst-3.15.1/back-ends/foma/foma.c:118: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 *scriptfile, prompt[50];
data/hfst-3.15.1/back-ends/foma/foma.c:179: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(prompt, "foma[%i]: ",stack_size());
data/hfst-3.15.1/back-ends/foma/foma.c:181: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(prompt, "apply down> ");
data/hfst-3.15.1/back-ends/foma/foma.c:183: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(prompt, "apply up> ");
data/hfst-3.15.1/back-ends/foma/foma.c:185: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(prompt, "apply med> ");
data/hfst-3.15.1/back-ends/foma/fomalib.h:125: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 name[40];
data/hfst-3.15.1/back-ends/foma/iface.c:396: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 *result, inword[LINE_LIMIT];
data/hfst-3.15.1/back-ends/foma/iface.c:405: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).
    INFILE = fopen(infilename, "r");
data/hfst-3.15.1/back-ends/foma/iface.c:415: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).
        OUTFILE = fopen(outfilename, "w");
data/hfst-3.15.1/back-ends/foma/iface.c:581:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return(atoi(s+i));
data/hfst-3.15.1/back-ends/foma/iface.c:741:27:  [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).
                outfile = fopen(filename,"w");
data/hfst-3.15.1/back-ends/foma/iface.c:1067:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            printf("%-17.17s: %s\n",global_vars[i].name, *((char **)(global_vars[i].ptr)) );
data/hfst-3.15.1/back-ends/foma/iface.c:1101: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.
                *((char **)(global_vars[i].ptr)) = xxstrdup(value);
data/hfst-3.15.1/back-ends/foma/iface.c:1255: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).
	if ((outfile = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/iface.c:1388: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).
	if ((outfile = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/iface.c:1426: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).
        outfile = fopen(filename, "w");
data/hfst-3.15.1/back-ends/foma/iface.c:1484: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).
      if ((out = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/iface.c:1562: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 size[20];
data/hfst-3.15.1/back-ends/foma/iface.c:1574: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(size, "%i bytes. ", s);
data/hfst-3.15.1/back-ends/foma/iface.c:1576: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(size, "%.1f kB. ", sf/1024);
data/hfst-3.15.1/back-ends/foma/iface.c:1578: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(size, "%.1f MB. ", sf/1048576);
data/hfst-3.15.1/back-ends/foma/iface.c:1580: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(size, "%.1f GB. ", sf/1073741824);
data/hfst-3.15.1/back-ends/foma/iface.c:1644: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).
        dotfile = fopen(filename,"w");
data/hfst-3.15.1/back-ends/foma/iface.c:1699: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 tmpstr[255];
data/hfst-3.15.1/back-ends/foma/iface.c:1706: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(dotname, ".dot");
data/hfst-3.15.1/back-ends/foma/io.c:143: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 *outstring, *instring, identifier[100];
data/hfst-3.15.1/back-ends/foma/io.c:148: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).
    if ((out = fopen(filename, "w")) == NULL) {
data/hfst-3.15.1/back-ends/foma/io.c:253: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 inword[1024], delimiters[] = "\t", *tokens[6];
data/hfst-3.15.1/back-ends/foma/io.c:256: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).
    INFILE = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/io.c:287:38:  [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).
            fsm_construct_add_arc(h, atoi(tokens[0]), atoi(tokens[1]), tokens[2], tokens[3]);
data/hfst-3.15.1/back-ends/foma/io.c:287: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).
            fsm_construct_add_arc(h, atoi(tokens[0]), atoi(tokens[1]), tokens[2], tokens[3]);
data/hfst-3.15.1/back-ends/foma/io.c:290:39:  [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).
            fsm_construct_set_final(h,atoi(tokens[0]));
data/hfst-3.15.1/back-ends/foma/io.c:302: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 [1024], temp [1024], in [128], out[128], *temp_ptr, *temp_ptr2;
data/hfst-3.15.1/back-ends/foma/io.c:309: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).
    prolog_file = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/io.c:338:36:  [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).
	    fsm_construct_set_final(outh, atoi(temp));
data/hfst-3.15.1/back-ends/foma/io.c:370:15:  [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).
	    source = atoi(temp);
data/hfst-3.15.1/back-ends/foma/io.c:378:15:  [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).
	    target = atoi(temp);
data/hfst-3.15.1/back-ends/foma/io.c:398:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(in,"@_IDENTITY_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/io.c:401:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(in,"@_UNKNOWN_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/io.c:404:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(out,"@_UNKNOWN_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/io.c:407:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(in,"@_EPSILON_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/io.c:410:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(out,"@_EPSILON_SYMBOL_@");
data/hfst-3.15.1/back-ends/foma/io.c:671:31:  [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).
            *(values+items) = atoi(buf+i);
data/hfst-3.15.1/back-ends/foma/io.c:676:31:  [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).
            *(values+items) = atoi(buf+i);
data/hfst-3.15.1/back-ends/foma/io.c:738: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[READ_BUF_SIZE];
data/hfst-3.15.1/back-ends/foma/io.c:1000: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 bytes[4];
data/hfst-3.15.1/back-ends/foma/io.c:1004: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).
    infile = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/io.c:1021: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).
    infile = fopen(filename, "r");
data/hfst-3.15.1/back-ends/foma/io.c:1070: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).
    infile = fopen(name, "r");
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1110:36:  [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).
  cmatrix_default_substitute(mnet, atoi(cmatrixtext));
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1118:32:  [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).
  cmatrix_default_delete(mnet, atoi(cmatrixtext));
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1126:32:  [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).
  cmatrix_default_insert(mnet, atoi(cmatrixtext));
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1134: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).
  currcost = atoi(cmatrixtext);
data/hfst-3.15.1/back-ends/foma/lex.interface.c:7756: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 funcdef[16384];
data/hfst-3.15.1/back-ends/foma/lex.interface.c:7820: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(argstr, "@ARGUMENT%02i@", fa->argno);
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9332: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).
  if ((interfacein = fopen(trim(interfacetext), "r" )) != NULL) {
data/hfst-3.15.1/back-ends/foma/lexcread.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 tmpstring[5];
data/hfst-3.15.1/back-ends/foma/mem.c:55: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(r, s, n);
data/hfst-3.15.1/back-ends/foma/mem.c:100: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, s, size);
data/hfst-3.15.1/back-ends/foma/regex.c:88: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 *fname[MAX_F_RECURSION];             /* Function names */
data/hfst-3.15.1/back-ends/foma/regex.c:110: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 repstr[13], oldstr[13];
data/hfst-3.15.1/back-ends/foma/regex.c:121: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(repstr,"%012X",g_internal_sym);
data/hfst-3.15.1/back-ends/foma/regex.c:122: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(oldstr, "@ARGUMENT%02i@", (i+1));
data/hfst-3.15.1/back-ends/foma/regex.c:131: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(repstr,"%012X",mygsym);
data/hfst-3.15.1/back-ends/foma/regex.c:1675:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/hfst-3.15.1/back-ends/foma/regex.c:1932:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/hfst-3.15.1/back-ends/foma/regex.c:2768:57:  [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).
    { (yyval.net) = fsm_concat_n((yyvsp[(1) - (2)].net),atoi((yyvsp[(2) - (2)].string))); }
data/hfst-3.15.1/back-ends/foma/regex.c:2775:79:  [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).
    { (yyval.net) = fsm_concat(fsm_concat_n(fsm_copy((yyvsp[(1) - (2)].net)), atoi((yyvsp[(2) - (2)].string))),fsm_kleene_plus(fsm_copy((yyvsp[(1) - (2)].net)))); fsm_destroy((yyvsp[(1) - (2)].net)); }
data/hfst-3.15.1/back-ends/foma/regex.c:2782:61:  [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).
    { (yyval.net) = fsm_concat_m_n((yyvsp[(1) - (2)].net),0,atoi((yyvsp[(2) - (2)].string))-1); }
data/hfst-3.15.1/back-ends/foma/regex.c:2789:59:  [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).
    { (yyval.net) = fsm_concat_m_n((yyvsp[(1) - (2)].net),atoi((yyvsp[(2) - (2)].string)),atoi(strstr((yyvsp[(2) - (2)].string),",")+1)); }
data/hfst-3.15.1/back-ends/foma/regex.c:2789:91:  [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).
    { (yyval.net) = fsm_concat_m_n((yyvsp[(1) - (2)].net),atoi((yyvsp[(2) - (2)].string)),atoi(strstr((yyvsp[(2) - (2)].string),",")+1)); }
data/hfst-3.15.1/back-ends/foma/rewrite.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 (*namestrings)[8];
data/hfst-3.15.1/back-ends/foma/rewrite.c:108: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(rb->namestrings[i], "@#%04i@", i+1);
data/hfst-3.15.1/back-ends/foma/spelling.c:113: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.
		printptr += sprintf(medh->instring+printptr,"%.*s", utf8skip(word+i)+1, word+i);
data/hfst-3.15.1/back-ends/foma/spelling.c:234: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 temputf[5] ;
data/hfst-3.15.1/back-ends/foma/stack.c:51: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(fsm->name, "%X",rand());
data/hfst-3.15.1/back-ends/foma/structures.c:29: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 s[20];
data/hfst-3.15.1/back-ends/foma/structures.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 repstr[13];
data/hfst-3.15.1/back-ends/foma/structures.c:588: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(repstr,"%012X",newsym++);
data/hfst-3.15.1/back-ends/foma/structures.c:608: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 repstr[13];
data/hfst-3.15.1/back-ends/foma/structures.c:627: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(repstr,"%012X",newsym++);
data/hfst-3.15.1/back-ends/foma/structures.c:793: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(net_copy, net, sizeof(struct fsm));
data/hfst-3.15.1/back-ends/foma/structures.c:805:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(new_fsm_state, fsm_state, linecount*sizeof(struct fsm_state));
data/hfst-3.15.1/back-ends/foma/utf8.c:147: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, newstring, len);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/compat.h:73: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.
  typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 :
data/hfst-3.15.1/back-ends/openfst/src/include/fst/icu.h:86: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 c_str[5];
data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h:268: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 line[kLineLen];
data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table.cc:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[kLineLen];
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compat.h:100: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.
  typedef char VerifySizesAreEqual [sizeof(Dest) == sizeof(Source) ? 1 :
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/flags.h:33:23:  [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 atoll atol
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h:286: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 line[kLineLen];
data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table.cc:44: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 line[kLineLen];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:115: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 symbol[100];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:116: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(symbol,">%ld<",(long)i);
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:223: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 message[100];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:237: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 message[100];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:241:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(message,"Error: defining a (very long) symbol with previously used character");
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:271: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+(*pos),"\\%u", uc);
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:288: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 buffer[1000];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:324: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 buffer[1000];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:522:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[2];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:556:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char buffer[1000];
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:650:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[BUFFER_SIZE];
data/hfst-3.15.1/back-ends/sfst/fst.cc:288: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[10000];
data/hfst-3.15.1/back-ends/sfst/fst.cc:595: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[BUFFER_SIZE];
data/hfst-3.15.1/back-ends/sfst/fst.cc:960: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 message[1000];
data/hfst-3.15.1/back-ends/sfst/fst.cc:961: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(message, "Error: in line %u of text transducer file",
data/hfst-3.15.1/back-ends/sfst/fst.cc:1040: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[10000];
data/hfst-3.15.1/back-ends/sfst/mem.h:30:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[MEMBUFFER_SIZE];
data/hfst-3.15.1/back-ends/sfst/utf8.cc:38: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 ch[5];
data/hfst-3.15.1/libhfst/src/HfstDataTypes.cc:145:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(filename, mode);
data/hfst-3.15.1/libhfst/src/HfstInputStream.cc:567:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char chars_read[26];
data/hfst-3.15.1/libhfst/src/hfst-string-conversions.cc:22: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 [1024];
data/hfst-3.15.1/libhfst/src/hfst-string-conversions.cc:34:11:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
          MultiByteToWideChar(CP_UTF8 , 0 , pstr.c_str() , -1, NULL , 0 );
data/hfst-3.15.1/libhfst/src/hfst-string-conversions.cc:36:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar(CP_UTF8 , 0 ,
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:137: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 foma_identifier[10];
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:149: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 hfst_header[6];
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:893: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[READ_BUF_SIZE];
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:1064:31:  [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).
            *(values+items) = atoi(buf+i);
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:1069:31:  [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).
            *(values+items) = atoi(buf+i);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1016: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.
           char namearr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1147: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.
           char namestr[100]; char sourcestr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1147:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           char namestr[100]; char sourcestr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1148: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.
           char targetstr[100]; char symbolstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1148: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 targetstr[100]; char symbolstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1164: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 int source = atoi(sourcestr);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1165: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 int target = atoi(targetstr);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1185: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.
           char namestr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1186: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.
           char finalstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1187: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.
           char weightstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1222:35:  [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).
           graph.set_final_weight(atoi(finalstr), weight);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1229: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.
           char namearr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1230: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.
           char symbolarr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1272: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.
           char line [255];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1548:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                     cw = sprintf(ptr + cwt, "\t%f",
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1556: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.
                   cw = sprintf(ptr + cwt, "%i", source_state);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1559:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                     cw = sprintf(ptr + cwt, "\t%f",
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1612: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.
           char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1612:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1612: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.
           char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1613: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.
           char a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1613:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           char a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1630: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).
               set_final_weight( atoi(a1), weight );
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1654:38:  [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).
             HfstBasicTransition tr( atoi(a2), input_symbol,
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1656:30:  [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).
             add_transition( atoi(a1), tr );
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1692: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.
           char line [255];
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc:41:27:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void HfstOlInputStream::open(void) {}
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc: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 buffer[24];
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[24];
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc:198: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).
  void HfstOlOutputStream::open(void) {}
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.h:46:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(void);
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.h:77:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(void);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1148: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.
           char namearr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1279: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.
           char namestr[100]; char sourcestr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1279:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           char namestr[100]; char sourcestr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1280: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.
           char targetstr[100]; char symbolstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1280: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 targetstr[100]; char symbolstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1296: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 int source = atoi(sourcestr);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1297: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 int target = atoi(targetstr);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1317: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.
           char namestr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1318: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.
           char finalstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1319: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.
           char weightstr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1354:35:  [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).
           graph.set_final_weight(atoi(finalstr), weight);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1361: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.
           char namearr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1362: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.
           char symbolarr[100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1404: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.
           char line [255];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1678:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                     cw = sprintf(ptr + cwt, "\t%f",
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1686: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.
                   cw = sprintf(ptr + cwt, "%i", source_state);
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1689:27:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                     cw = sprintf(ptr + cwt, "\t%f",
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1742: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.
           char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1742:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1742: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.
           char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1743: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.
           char a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1743:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           char a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1755:32:  [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_final_weight( atoi(a1), weight );
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1778:37:  [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).
             HfstTransition <C> tr( atoi(a2), input_symbol,
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1780:30:  [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).
             add_transition( atoi(a1), tr );
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1816: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.
           char line [255];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:726: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 [255];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:739: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 a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:739:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:739: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.
        char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:740: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 a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:740:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:753:32:  [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 final_number = atoi(a1);
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:760:33:  [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 origin_number = atoi(a1);
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:761:33:  [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 target_number = atoi(a2);
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:897: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 [255];
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:910: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 a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:910:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:910: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.
        char a1 [100]; char a2 [100]; char a3 [100];
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:911: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 a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:911:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char a4 [100]; char a5 [100];
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:923:32:  [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 final_number = atoi(a1);
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:930:33:  [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 origin_number = atoi(a1);
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:931:33:  [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 target_number = atoi(a2);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:1391: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 single_codepoint_scratch_orig[5] = {};
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:1401: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(single_codepoint_scratch, *input_str_ptr, bytes_to_tokenize);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:1421: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 new_symbol[5];
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:1422: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(new_symbol, *input_str_ptr, bytes_to_tokenize);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch_tokenize.cc:795: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.
    for(char line[bufsize]; instream.getline(line, bufsize); ) {
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.cc:277: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(new_symbol, *input_str_ptr, bytes_to_tokenize);
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:113: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 message[100];
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:127: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 message[100];
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:131: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(message,"Error: defining a (very long) symbol with previously used character");
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:253: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 buffer[1000];
data/hfst-3.15.1/libhfst/src/parsers/SfstCompiler.cc:646: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 message[1000];
data/hfst-3.15.1/libhfst/src/parsers/SfstCompiler.cc:661: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[10000];
data/hfst-3.15.1/libhfst/src/parsers/SfstUtf8.cc:39: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 ch[5];
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:2191: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(num, "%u", number);
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:4983: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).
              int level = atoi(line+1); // skip '-'
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:5009: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).
              int number = atoi(line); // FIX: atoi is not portable
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:5580: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[256];
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:5581: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, "hfst[" SIZE_T_SPECIFIER "]: ", stack_.size());
data/hfst-3.15.1/libhfst/src/parsers/alphabet_src/Alphabet.cc:205:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * arr1[2] = { "a","b" };
data/hfst-3.15.1/libhfst/src/parsers/alphabet_src/Alphabet.cc:206:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * arr2[3] = { "a","b","c" };
data/hfst-3.15.1/libhfst/src/parsers/io_src/InputReader.h:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[500000];
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:259:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy(beforelbr, hlexctext, maybelbr-hlexctext);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:433:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(token_part, token + prefix_len, varpart_len);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:218: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(buf, data, maxlen);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:866: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.
                      char buf[5];
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:867: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.
                      memcpy(buf, p+2, 4);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:883: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.
                      char buf[9];
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:884: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.
                      memcpy(buf, p+2, 8);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:964: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[5];
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1015: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[9];
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1017: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(buf, *c+2, 4);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1021: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(buf, *c+2, 8);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1037: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[9];
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1039: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(buf, *c+2, 4);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1043: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(buf, *c+2, 8);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1152:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                infile.open(filepath.c_str());
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1406:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile.open(filename.c_str());
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1463:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile.open(filename.c_str());
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1557:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile.open(filename);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1717: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[7];
data/hfst-3.15.1/libhfst/src/parsers/string_src/string_manipulation.cc:287: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 arr2[4];
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:76:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void)memcpy(beforelbr, hxfsttext, maybelbr-hxfsttext);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:223:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void)memcpy(token_part, token + prefix_len, varpart_len);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:91:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer [1024];
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:171: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(buf, data, maxlen);
data/hfst-3.15.1/python/hfst_file_extensions.cpp:25: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 * f = fopen(filename, mode);
data/hfst-3.15.1/python/hfst_sfst_extensions.cpp:20: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).
      inputfile = fopen(filename.c_str(), "rb");
data/hfst-3.15.1/test/libhfst/test_constructors.cc:68: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 * file = fopen((std::string(getenv("srcdir")) +
data/hfst-3.15.1/test/libhfst/test_examples.cc:82: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 * ofile = fopen("testfile.att", "wb");
data/hfst-3.15.1/test/libhfst/test_examples.cc:110: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).
      FILE * ifile = fopen("testfile.att", "rb");
data/hfst-3.15.1/test/libhfst/test_hfst_basic_transducer.cc:58: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 * ofile = fopen("test.att", "wb");
data/hfst-3.15.1/test/libhfst/test_hfst_basic_transducer.cc:61: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 * ifile = fopen("test.att", "rb");
data/hfst-3.15.1/test/libhfst/test_streams.cc:30: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 * file = fopen((std::string(getenv("srcdir")) +
data/hfst-3.15.1/test/libhfst/test_streams.cc:52: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).
      FILE * f2 = fopen("transducer.att", "wb");
data/hfst-3.15.1/test/libhfst/test_streams.cc:59: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).
      FILE * ofile = fopen("transducer2.att", "wb");
data/hfst-3.15.1/test/libhfst/test_tokenizer.cc:60: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 line[100];
data/hfst-3.15.1/tools/src/hfst-binary-tool.cc:105:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    firststream.open();
data/hfst-3.15.1/tools/src/hfst-binary-tool.cc:106:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    secondstream.open();
data/hfst-3.15.1/tools/src/hfst-binary-tool.cc:107: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).
    outstream.open();
data/hfst-3.15.1/tools/src/hfst-commandline.cc:448: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, mode);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:515:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  FILE* rv = tmpfile();
data/hfst-3.15.1/tools/src/hfst-commandline.cc:539:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int rv = open(pathname, flags);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:584:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int rv = mkstemp(templ);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:615:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    rv = static_cast<char*>(memcpy(rv, s, n));
data/hfst-3.15.1/tools/src/hfst-commandline.cc:909:34:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  new_argv = static_cast<char**>(memcpy(new_argv, *argv, sizeof(char*)**argc));
data/hfst-3.15.1/tools/src/hfst-file-to-mem.cc:54: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).
  infile = fopen(filename, "rb");
data/hfst-3.15.1/tools/src/hfst-flookup.cc:455:39:  [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).
            infinite_cutoff = (size_t)atoi(hfst_strdup(optarg));
data/hfst-3.15.1/tools/src/hfst-flookup.cc:809:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        b = static_cast<char*>(memcpy(b, lookupform, anal_start - lookupform));
data/hfst-3.15.1/tools/src/hfst-flookup.cc:812:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        a = static_cast<char*>(memcpy(a, anal_start, lookup_end - anal_start));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:462:39:  [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).
            infinite_cutoff = (size_t)atoi(hfst_strdup(optarg));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:465: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).
            max_number = (size_t)atoi(hfst_strdup(optarg));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:805:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        b = static_cast<char*>(memcpy(b, lookupform, anal_start - lookupform));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:808:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        a = static_cast<char*>(memcpy(a, anal_start, lookup_end - anal_start));
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:210: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).
          maxAnalyses = atoi(optarg);
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:262: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 * f = fopen(argv[(optind)], "rb");
data/hfst-3.15.1/tools/src/hfst-pair-test-commandline.h:108: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 rule_name[1000];
data/hfst-3.15.1/tools/src/hfst-pair-test-transducers.h:416:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        input_fragment = static_cast<char*>(memcpy(input_fragment, last_start, colon - last_start));
data/hfst-3.15.1/tools/src/hfst-pmatch.cc:324: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).
            max_context = atoi(optarg);
data/hfst-3.15.1/tools/src/hfst-pmatch.cc:332: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).
            max_recursion = atoi(optarg);
data/hfst-3.15.1/tools/src/hfst-proc/buffer.h:60:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf, b.buf, size);
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:290: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).
      maxAnalyses = atoi(optarg);
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:299: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).
      maxWeightClasses = atoi(optarg);
data/hfst-3.15.1/tools/src/hfst-proc/tokenizer.h:40: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 character[5];
data/hfst-3.15.1/tools/src/hfst-repeat.cc:202: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 (sprintf(composed_name, "repeat-%lu-to-%lu",
data/hfst-3.15.1/tools/src/hfst-repeat.cc:210: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 (sprintf(composed_name, "_%lu^%lu",
data/hfst-3.15.1/tools/src/hfst-repeat.cc:229: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 (sprintf(composed_name, "repeat-%lu-plus",
data/hfst-3.15.1/tools/src/hfst-repeat.cc:237: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 (sprintf(composed_name, "_%lu^∞",
data/hfst-3.15.1/tools/src/hfst-strings2fst.cc:432:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char multichar_line[1000];
data/hfst-3.15.1/tools/src/hfst-tagger/src/hfst-train-tagger-system.cc:12: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 command [1000];
data/hfst-3.15.1/tools/src/hfst-tagger/src/use_model_src/SentenceTagger.cc:165: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 line[50000];
data/hfst-3.15.1/tools/src/hfst-tokenize.cc:477: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).
            settings.max_weight_classes = atoi(optarg);
data/hfst-3.15.1/tools/src/hfst-twolc/src/hfst-twolc-system.cc:12: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 command [1000];
data/hfst-3.15.1/tools/src/hfst-unary-tool.cc:109:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  instream.open();
data/hfst-3.15.1/tools/src/hfst-unary-tool.cc:110: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).
  outstream.open();
data/hfst-3.15.1/tools/src/parsers/hfst-xfst.cc:488:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line [MAX_LINE_LENGTH];
data/hfst-3.15.1/tools/src/test.cc:348:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      out1.open();
data/hfst-3.15.1/tools/src/test.cc:350:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      out2.open();
data/hfst-3.15.1/tools/src/test.cc:366:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      in1.open();
data/hfst-3.15.1/tools/src/test.cc:368:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      in2.open();
data/hfst-3.15.1/back-ends/foma/apply.c:93: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).
    (h->sigs+EPSILON)->length =  strlen(h->epsilon_symbol);
data/hfst-3.15.1/back-ends/foma/apply.c:969: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).
    while (alen + blen + h->opos + 2 + strlen(h->separator) >= h->outstringtop) {
data/hfst-3.15.1/back-ends/foma/apply.c:994: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).
		strcpy(h->outstring+h->opos+alen+strlen(h->separator),bstring);
data/hfst-3.15.1/back-ends/foma/apply.c:996: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).
		len = alen+blen+strlen(h->separator);
data/hfst-3.15.1/back-ends/foma/apply.c:1025:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(astring, h->instring+h->ipos, 1);
data/hfst-3.15.1/back-ends/foma/apply.c:1027:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(bstring, h->instring+h->ipos, 1);
data/hfst-3.15.1/back-ends/foma/apply.c:1028:6:  [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->outstring+h->opos, "<");
data/hfst-3.15.1/back-ends/foma/apply.c:1033: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).
	    strcpy(h->outstring+h->opos+alen+1+strlen(h->separator), bstring);
data/hfst-3.15.1/back-ends/foma/apply.c:1035:6:  [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->outstring+h->opos+alen+blen+1+strlen(h->separator),">");
data/hfst-3.15.1/back-ends/foma/apply.c:1035: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).
	    strcpy(h->outstring+h->opos+alen+blen+1+strlen(h->separator),">");
data/hfst-3.15.1/back-ends/foma/apply.c:1037: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 = alen+blen+2+strlen(h->separator);
data/hfst-3.15.1/back-ends/foma/apply.c:1044:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(h->outstring+h->opos, h->instring+h->ipos, idlen);
data/hfst-3.15.1/back-ends/foma/apply.c:1045:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
	    strncpy(h->outstring+h->opos+idlen,"", 1);
data/hfst-3.15.1/back-ends/foma/apply.c:1252: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).
	(h->sigs+(sig->number))->length = strlen(sig->symbol);
data/hfst-3.15.1/back-ends/foma/apply.c:1260: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).
	(h->sigs+EPSILON)->length =  strlen(h->epsilon_symbol);
data/hfst-3.15.1/back-ends/foma/apply.c:1303: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).
    inlen = strlen(symbol);
data/hfst-3.15.1/back-ends/foma/constructions.c:101:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(tmpin, in, utf8skip(in)+1);
data/hfst-3.15.1/back-ends/foma/constructions.c:113:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(tmpout, out, utf8skip(in)+1);
data/hfst-3.15.1/back-ends/foma/constructions.c:158: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(symbol)-2;
data/hfst-3.15.1/back-ends/foma/constructions.c:1040:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (unknown_1 && !equal) {
data/hfst-3.15.1/back-ends/foma/constructions.c:1127:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (unknown_2 && !equal) {
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:93: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).
    (h->sigs+EPSILON)->length =  strlen(h->epsilon_symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:969: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).
    while (alen + blen + h->opos + 2 + strlen(h->separator) >= h->outstringtop) {
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:994: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).
		strcpy(h->outstring+h->opos+alen+strlen(h->separator),bstring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:996: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).
		len = alen+blen+strlen(h->separator);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1025:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(astring, h->instring+h->ipos, 1);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1027:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(bstring, h->instring+h->ipos, 1);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1028:6:  [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->outstring+h->opos, "<");
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1033: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).
	    strcpy(h->outstring+h->opos+alen+1+strlen(h->separator), bstring);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1035:6:  [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->outstring+h->opos+alen+blen+1+strlen(h->separator),">");
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1035: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).
	    strcpy(h->outstring+h->opos+alen+blen+1+strlen(h->separator),">");
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1037: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 = alen+blen+2+strlen(h->separator);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1044:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(h->outstring+h->opos, h->instring+h->ipos, idlen);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1045:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
	    strncpy(h->outstring+h->opos+idlen,"", 1);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1252: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).
	(h->sigs+(sig->number))->length = strlen(sig->symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1260: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).
	(h->sigs+EPSILON)->length =  strlen(h->epsilon_symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/apply.cc:1303: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).
    inlen = strlen(symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc:101:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(tmpin, in, utf8skip(in)+1);
data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc:113:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(tmpout, out, utf8skip(in)+1);
data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc:158: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(symbol)-2;
data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc:1040:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (unknown_1 && !equal) {
data/hfst-3.15.1/back-ends/foma/cpp-version/constructions.cc:1127:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (unknown_2 && !equal) {
data/hfst-3.15.1/back-ends/foma/cpp-version/dynarray.cc:456:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(net->name, handle->name, 40);
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:147: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).
    string = (char*)xxmalloc(sizeof(char)*strlen(name)+strlen(value)+6);
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:147: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).
    string = (char*)xxmalloc(sizeof(char)*strlen(name)+strlen(value)+6);
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:149:5:  [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(string, "@");
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:151:5:  [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(string, ".");
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:154: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(string, ".");
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:157:5:  [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(string, "@");
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:283:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:283: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).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:283:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:283:106:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:283:147:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:399: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(string);
data/hfst-3.15.1/back-ends/foma/cpp-version/flags.cc:420: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(string);
data/hfst-3.15.1/back-ends/foma/cpp-version/foma.cc:240: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(text);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:426: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).
        if (inword[strlen(inword)-1] == '\n') {
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:427: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).
            inword[strlen(inword)-1] = '\0';
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:701:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(stack_find_top()->fsm->name, name, 40);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1309:6:  [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.
	    strncat(string, result+i, 1);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1327: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).
    *upper = calloc(strlen(result), sizeof(char));
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1328: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).
    *lower = calloc(strlen(result), sizeof(char));
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1568: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).
        s += strlen(sigma->symbol)+1+sizeof(struct sigma);
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1672: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).
                  linelen += strlen((sigptr(net->sigma, (stateptr+j)->in)));
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1675: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).
                  linelen += strlen((sigptr(net->sigma, (stateptr+j)->in))) + strlen(sigptr(net->sigma, (stateptr+j)->out)) + 3;
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1675:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  linelen += strlen((sigptr(net->sigma, (stateptr+j)->in))) + strlen(sigptr(net->sigma, (stateptr+j)->out)) + 3;
data/hfst-3.15.1/back-ends/foma/cpp-version/iface.cc:1705:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  dotname = strncpy(tmpstr,tempnam(NULL,"foma"), 250);
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:263: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).
        if (inword[strlen(inword)-1] == '\n') {
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:264: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).
            inword[strlen(inword)-1] = '\0';
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:325:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:335:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:343:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:346:3:  [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(temp, "0");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:368:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:376:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:387:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(in, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:394:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:413:3:  [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(in,"0");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:416:3:  [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(out,"0");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:419:3:  [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(in,"?");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:422:3:  [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(out,"?");
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:507: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(t1) == 0)
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:510: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).
	if (t2 == NULL || strlen(t2) == 0) {
data/hfst-3.15.1/back-ends/foma/cpp-version/io.cc:564: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(textp1) > 0)
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:846:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( cmatrixin )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1085: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).
  *(cmatrixtext+strlen(cmatrixtext)-1) = '\0';
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1093: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).
  instring = xxstrndup(cmatrixtext, strlen(cmatrixtext)-1);
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.cmatrix.cc:1839: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).
	return cmatrix_scan_bytes(yystr,strlen(yystr) );
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:8003:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( interfacein )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9155: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).
   func_name = xxmalloc(sizeof(char)*(strlen(interfacetext)+2));
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:9157:4:  [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(func_name, "(");
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.interface.cc:10376: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).
	return interface_scan_bytes(yystr,strlen(yystr) );
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.lexc.cc:1381: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).
  for (i = strlen(s)-1; *(s+i) == ';' || *(s+i) == '=' || *(s+i) == ' ' || *(s+i) == '\t'; i--)
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.lexc.cc:1510:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( lexcin )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.lexc.cc:2681: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).
	return lexc_scan_bytes(yystr,strlen(yystr) );
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.yy.cc:1756: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).
    newregex = (char*)xxmalloc(sizeof(char)*(strlen(regex)+2));
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.yy.cc:1758:5:  [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(newregex, ";");
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.yy.cc:1995:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/cpp-version/lex.yy.cc:3797: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).
	return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/hfst-3.15.1/back-ends/foma/cpp-version/lexcread.cc:609: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(string);
data/hfst-3.15.1/back-ends/foma/cpp-version/lexcread.cc:624: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).
                if (strncmp(string+i,mcs->symbol,strlen(mcs->symbol)) == 0) {
data/hfst-3.15.1/back-ends/foma/cpp-version/lexcread.cc:635: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).
            i += strlen(mcs->symbol);
data/hfst-3.15.1/back-ends/foma/cpp-version/mem.cc:97: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).
  size_t size = strlen(s) + 1;
data/hfst-3.15.1/back-ends/foma/cpp-version/regex.cc:1561:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/hfst-3.15.1/back-ends/foma/cpp-version/sigma.cc:147: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).
	sigma_splice->symbol = (char *)xxmalloc(sizeof(char)*(strlen(symbol)+1));
data/hfst-3.15.1/back-ends/foma/cpp-version/sigma.cc:156: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).
	sigma->symbol = (char *)xxmalloc(sizeof(char)*(strlen(symbol)+1));
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:81:25:  [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.
            printptr += sprintf(medh->outstring+printptr,"@");
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:110:15:  [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.
		printptr += sprintf(medh->instring+printptr,"*");
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:251: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).
    medh->wordlen = strlen(word);
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:261:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(temputf, word+i, thisskip);
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:764: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).
        lsymbol = strlen(sigma->symbol) > lsymbol ? strlen(sigma->symbol) : lsymbol;
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:764: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).
        lsymbol = strlen(sigma->symbol) > lsymbol ? strlen(sigma->symbol) : lsymbol;
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:794: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).
                printf("%.*s",(int)strlen(sigma_string(j, net->sigma))+1,"*");
data/hfst-3.15.1/back-ends/foma/cpp-version/spelling.cc:796: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).
                printf("%.*d",(int)strlen(sigma_string(j, net->sigma))+1,*(cm+i*maxsigma+j));
data/hfst-3.15.1/back-ends/foma/cpp-version/trie.cc:79: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(wcopy);
data/hfst-3.15.1/back-ends/foma/cpp-version/trie.cc:81:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wcopy, word, utf8skip(word)+1);
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:29: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(s)-1;
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:44: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).
    for (i = strlen(string) - 1; i >=0; i--) {
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:57: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).
      for (p1 = str, p2 = str + strlen(str) - 1; p2 > p1; ++p1, --p2) {
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:68: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).
    for (i=0,j=0; i < strlen(string); i++) {
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:74: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).
        newstring = (char *)xxcalloc((strlen(string)+j),sizeof(char));
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:75: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).
        for (i=0,j=0; i<strlen(string); i++, j++) {
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:92: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(s);
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:104: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(s);
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:122: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(s);
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:144: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(oldstring);
data/hfst-3.15.1/back-ends/foma/cpp-version/utf8.cc:163: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(str);
data/hfst-3.15.1/back-ends/foma/dynarray.c:456:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(net->name, handle->name, 40);
data/hfst-3.15.1/back-ends/foma/flags.c:147: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).
    string = xxmalloc(sizeof(char)*strlen(name)+strlen(value)+6);
data/hfst-3.15.1/back-ends/foma/flags.c:147: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).
    string = xxmalloc(sizeof(char)*strlen(name)+strlen(value)+6);
data/hfst-3.15.1/back-ends/foma/flags.c:149:5:  [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(string, "@");
data/hfst-3.15.1/back-ends/foma/flags.c:151:5:  [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(string, ".");
data/hfst-3.15.1/back-ends/foma/flags.c:154: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(string, ".");
data/hfst-3.15.1/back-ends/foma/flags.c:157:5:  [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(string, "@");
data/hfst-3.15.1/back-ends/foma/flags.c:283:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/flags.c:283: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).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/flags.c:283:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/flags.c:283:106:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/flags.c:283:147:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(csym,name,strlen(name)) == 0 && (strlen(csym)>strlen(name)) && (strncmp(csym+strlen(name),".",1) == 0 || strncmp(csym+strlen(name),"@",1) == 0)) {
data/hfst-3.15.1/back-ends/foma/flags.c:399: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(string);
data/hfst-3.15.1/back-ends/foma/flags.c:420: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(string);
data/hfst-3.15.1/back-ends/foma/foma.c:240: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(text);
data/hfst-3.15.1/back-ends/foma/iface.c:426: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).
        if (inword[strlen(inword)-1] == '\n') {
data/hfst-3.15.1/back-ends/foma/iface.c:427: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).
            inword[strlen(inword)-1] = '\0';
data/hfst-3.15.1/back-ends/foma/iface.c:701:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(stack_find_top()->fsm->name, name, 40);
data/hfst-3.15.1/back-ends/foma/iface.c:1309:6:  [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.
	    strncat(string, result+i, 1);
data/hfst-3.15.1/back-ends/foma/iface.c:1327: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).
    *upper = calloc(strlen(result), sizeof(char));
data/hfst-3.15.1/back-ends/foma/iface.c:1328: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).
    *lower = calloc(strlen(result), sizeof(char));
data/hfst-3.15.1/back-ends/foma/iface.c:1568: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).
        s += strlen(sigma->symbol)+1+sizeof(struct sigma);
data/hfst-3.15.1/back-ends/foma/iface.c:1672: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).
                  linelen += strlen((sigptr(net->sigma, (stateptr+j)->in)));
data/hfst-3.15.1/back-ends/foma/iface.c:1675: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).
                  linelen += strlen((sigptr(net->sigma, (stateptr+j)->in))) + strlen(sigptr(net->sigma, (stateptr+j)->out)) + 3;
data/hfst-3.15.1/back-ends/foma/iface.c:1675:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  linelen += strlen((sigptr(net->sigma, (stateptr+j)->in))) + strlen(sigptr(net->sigma, (stateptr+j)->out)) + 3;
data/hfst-3.15.1/back-ends/foma/iface.c:1705:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  dotname = strncpy(tmpstr,tempnam(NULL,"foma"), 250);
data/hfst-3.15.1/back-ends/foma/io.c:263: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).
        if (inword[strlen(inword)-1] == '\n') {
data/hfst-3.15.1/back-ends/foma/io.c:264: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).
            inword[strlen(inword)-1] = '\0';
data/hfst-3.15.1/back-ends/foma/io.c:325:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:335:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:343:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:346:3:  [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(temp, "0");
data/hfst-3.15.1/back-ends/foma/io.c:368:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:376:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(temp, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:387:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(in, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:394:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out, temp_ptr, (temp_ptr2 - temp_ptr));
data/hfst-3.15.1/back-ends/foma/io.c:413:3:  [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(in,"0");
data/hfst-3.15.1/back-ends/foma/io.c:416:3:  [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(out,"0");
data/hfst-3.15.1/back-ends/foma/io.c:419:3:  [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(in,"?");
data/hfst-3.15.1/back-ends/foma/io.c:422:3:  [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(out,"?");
data/hfst-3.15.1/back-ends/foma/io.c:507: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(t1) == 0)
data/hfst-3.15.1/back-ends/foma/io.c:510: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).
	if (t2 == NULL || strlen(t2) == 0) {
data/hfst-3.15.1/back-ends/foma/io.c:564: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(textp1) > 0)
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:846:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( cmatrixin )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1085: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).
  *(cmatrixtext+strlen(cmatrixtext)-1) = '\0';
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1093: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).
  instring = xxstrndup(cmatrixtext, strlen(cmatrixtext)-1);
data/hfst-3.15.1/back-ends/foma/lex.cmatrix.c:1839: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).
	return cmatrix_scan_bytes(yystr,strlen(yystr) );
data/hfst-3.15.1/back-ends/foma/lex.interface.c:8003:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( interfacein )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9155: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).
   func_name = xxmalloc(sizeof(char)*(strlen(interfacetext)+2));
data/hfst-3.15.1/back-ends/foma/lex.interface.c:9157:4:  [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(func_name, "(");
data/hfst-3.15.1/back-ends/foma/lex.interface.c:10376: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).
	return interface_scan_bytes(yystr,strlen(yystr) );
data/hfst-3.15.1/back-ends/foma/lex.lexc.c:1381: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).
  for (i = strlen(s)-1; *(s+i) == ';' || *(s+i) == '=' || *(s+i) == ' ' || *(s+i) == '\t'; i--)
data/hfst-3.15.1/back-ends/foma/lex.lexc.c:1510:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( lexcin )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/lex.lexc.c:2681: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).
	return lexc_scan_bytes(yystr,strlen(yystr) );
data/hfst-3.15.1/back-ends/foma/lex.yy.c:1755: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).
    newregex = xxmalloc(sizeof(char)*(strlen(regex)+2));
data/hfst-3.15.1/back-ends/foma/lex.yy.c:1757:5:  [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(newregex, ";");
data/hfst-3.15.1/back-ends/foma/lex.yy.c:1994:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/hfst-3.15.1/back-ends/foma/lex.yy.c:3795: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).
	return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/hfst-3.15.1/back-ends/foma/lexcread.c:609: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(string);
data/hfst-3.15.1/back-ends/foma/lexcread.c:624: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).
                if (strncmp(string+i,mcs->symbol,strlen(mcs->symbol)) == 0) {
data/hfst-3.15.1/back-ends/foma/lexcread.c:635: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).
            i += strlen(mcs->symbol);
data/hfst-3.15.1/back-ends/foma/mem.c:97: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).
  size_t size = strlen(s) + 1;
data/hfst-3.15.1/back-ends/foma/regex.c:1559:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/hfst-3.15.1/back-ends/foma/sigma.c:147: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).
	sigma_splice->symbol = xxmalloc(sizeof(char)*(strlen(symbol)+1));
data/hfst-3.15.1/back-ends/foma/sigma.c:156: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).
	sigma->symbol = xxmalloc(sizeof(char)*(strlen(symbol)+1));
data/hfst-3.15.1/back-ends/foma/spelling.c:81:25:  [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.
            printptr += sprintf(medh->outstring+printptr,"@");
data/hfst-3.15.1/back-ends/foma/spelling.c:110:15:  [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.
		printptr += sprintf(medh->instring+printptr,"*");
data/hfst-3.15.1/back-ends/foma/spelling.c:251: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).
    medh->wordlen = strlen(word);
data/hfst-3.15.1/back-ends/foma/spelling.c:261:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(temputf, word+i, thisskip);
data/hfst-3.15.1/back-ends/foma/spelling.c:764: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).
        lsymbol = strlen(sigma->symbol) > lsymbol ? strlen(sigma->symbol) : lsymbol;
data/hfst-3.15.1/back-ends/foma/spelling.c:764: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).
        lsymbol = strlen(sigma->symbol) > lsymbol ? strlen(sigma->symbol) : lsymbol;
data/hfst-3.15.1/back-ends/foma/spelling.c:794: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).
                printf("%.*s",(int)strlen(sigma_string(j, net->sigma))+1,"*");
data/hfst-3.15.1/back-ends/foma/spelling.c:796: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).
                printf("%.*d",(int)strlen(sigma_string(j, net->sigma))+1,*(cm+i*maxsigma+j));
data/hfst-3.15.1/back-ends/foma/trie.c:79: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(wcopy);
data/hfst-3.15.1/back-ends/foma/trie.c:81:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(wcopy, word, utf8skip(word)+1);
data/hfst-3.15.1/back-ends/foma/utf8.c:29: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(s)-1;
data/hfst-3.15.1/back-ends/foma/utf8.c:44: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).
    for (i = strlen(string) - 1; i >=0; i--) {
data/hfst-3.15.1/back-ends/foma/utf8.c:57: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).
      for (p1 = str, p2 = str + strlen(str) - 1; p2 > p1; ++p1, --p2) {
data/hfst-3.15.1/back-ends/foma/utf8.c:68: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).
    for (i=0,j=0; i < strlen(string); i++) {
data/hfst-3.15.1/back-ends/foma/utf8.c:74: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).
        newstring = xxcalloc((strlen(string)+j),sizeof(char));
data/hfst-3.15.1/back-ends/foma/utf8.c:75: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).
        for (i=0,j=0; i<strlen(string); i++, j++) {
data/hfst-3.15.1/back-ends/foma/utf8.c:92: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(s);
data/hfst-3.15.1/back-ends/foma/utf8.c:104: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(s);
data/hfst-3.15.1/back-ends/foma/utf8.c:122: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(s);
data/hfst-3.15.1/back-ends/foma/utf8.c:144: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(oldstring);
data/hfst-3.15.1/back-ends/foma/utf8.c:163: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(str);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/compact-fst.h:349:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    strm.read(reinterpret_cast<char *>(data->states_), b);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/compact-fst.h:367:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(data->compacts_), b);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/const-fst.h:224:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(impl->states_), b);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/const-fst.h:234:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(impl->arcs_), b);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/string.h:111: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).
      if (p < s + strlen(s) || (!allow_negative_ && n < 0)) {
data/hfst-3.15.1/back-ends/openfst/src/include/fst/tuple-weight.h:241:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    equal = equal && (w1.Value(i) == w2.Value(i));
data/hfst-3.15.1/back-ends/openfst/src/include/fst/tuple-weight.h:242:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return equal;
data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h:59:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return strm.read(reinterpret_cast<char *>(t), sizeof(T)); \
data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h:81:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(&ns), sizeof(ns));
data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h:84:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    strm.read(&c, 1);
data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h:121:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(&n), sizeof(n));    \
data/hfst-3.15.1/back-ends/openfst/src/include/fst/util.h:140:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(&n), sizeof(n));    \
data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table.cc:64: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).
    if (p < value + strlen(value) ||
data/hfst-3.15.1/back-ends/openfst/src/lib/symbol-table.cc:84: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).
    check_sum_.Update(symbols_[i], strlen(symbols_[i]) + 1);
data/hfst-3.15.1/back-ends/openfst/src/lib/util.cc:62:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    strm.read(&c, 1);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compact-fst.h:373:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    strm.read(reinterpret_cast<char *>(data->states_), b);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/compact-fst.h:394:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(data->compacts_), b);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/const-fst.h:229:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(impl->states_), b);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/const-fst.h:242:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(impl->arcs_), b);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/string.h:117: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).
      if (p < s + strlen(s) || (!allow_negative_ && n < 0)) {
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/tuple-weight.h:250:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    equal = equal && (w1.Value(i) == w2.Value(i));
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/tuple-weight.h:251:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return equal;
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h:71:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return strm.read(reinterpret_cast<char *>(t), sizeof(T)); \
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h:93:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(&ns), sizeof(ns));
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h:96:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    strm.read(&c, 1);
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h:133:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(&n), sizeof(n));    \
data/hfst-3.15.1/back-ends/openfstwin/src/include/fst/util.h:152:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  strm.read(reinterpret_cast<char *>(&n), sizeof(n));    \
data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table.cc:63: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).
    if (p < value + strlen(value) ||
data/hfst-3.15.1/back-ends/openfstwin/src/lib/symbol-table.cc:83: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).
    check_sum_.Update(symbols_[i], strlen(symbols_[i]) + 1);
data/hfst-3.15.1/back-ends/openfstwin/src/lib/util.cc:71:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    strm.read(&c, 1);
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:222: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(symbol) < 60) {
data/hfst-3.15.1/back-ends/sfst/alphabet.cc: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).
        if (strlen(symbol) < 70)
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:261: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 l=(int)strlen(s)-1;
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:272: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).
        *pos += (int)strlen(buffer+(*pos));
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:617: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).
      fwrite(s, sizeof(char), strlen(s)+1, file);
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:641:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void Alphabet::read( FILE *file )
data/hfst-3.15.1/back-ends/sfst/alphabet.cc:644:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    utf8 = (fgetc(file) != 0);
data/hfst-3.15.1/back-ends/sfst/alphabet.h:287:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read( FILE* );
data/hfst-3.15.1/back-ends/sfst/basic.cc:32: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* pStringCopy = (char*)malloc(strlen(pString) + 1);
data/hfst-3.15.1/back-ends/sfst/basic.cc:52:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c=fgetc(file);
data/hfst-3.15.1/back-ends/sfst/compact.cc:191:28:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = (unsigned char)fgetc(file);
data/hfst-3.15.1/back-ends/sfst/compact.cc:338:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (fgetc(file) != 'c')
data/hfst-3.15.1/back-ends/sfst/compact.cc:341:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    alphabet.read(file);
data/hfst-3.15.1/back-ends/sfst/fst.cc:308: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).
        size_t l = strlen(buffer);
data/hfst-3.15.1/back-ends/sfst/fst.cc:323: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).
      for( l=(int)strlen(buffer)-1; l>=0; l-- )
data/hfst-3.15.1/back-ends/sfst/fst.cc:927:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (fgetc(file) != 'a')
data/hfst-3.15.1/back-ends/sfst/fst.cc:944:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    alphabet.read(file);
data/hfst-3.15.1/back-ends/sfst/fst.h:351:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read( FILE* );        // reads an transducer in binary format
data/hfst-3.15.1/libhfst/src/HfstInputStream.cc:123:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        input_stream->read((char*)&i,sizeof(i));
data/hfst-3.15.1/libhfst/src/HfstPrintDot.cc:56: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(inp);
data/hfst-3.15.1/libhfst/src/HfstStrings2FstTokenizer.cc:181: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).
    { symbol.replace(pos,strlen(BACKSLASH_ESC),EMPTY); }
data/hfst-3.15.1/libhfst/src/HfstStrings2FstTokenizer.cc:185: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).
    { symbol.replace(pos,strlen(SPACE_ESCAPE)," "); }
data/hfst-3.15.1/libhfst/src/HfstStrings2FstTokenizer.cc:189: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).
    { symbol.replace(pos,strlen(TAB_ESCAPE),"   "); }
data/hfst-3.15.1/libhfst/src/HfstStrings2FstTokenizer.cc:193: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).
    { symbol.replace(pos,strlen(COL_ESCAPE),":"); }
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:84:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (char) fgetc(input_file); }
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:98:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(input_file);
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:123:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(f);
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:162:5:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fgetc(input_file);
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:1041:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(infile);
data/hfst-3.15.1/libhfst/src/implementations/FomaTransducer.cc:1044:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(infile);
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1551:25:  [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.
                   cw = sprintf(ptr + cwt, "\n");
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1562:25:  [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.
                   cw = sprintf(ptr + cwt, "\n");
data/hfst-3.15.1/libhfst/src/implementations/HfstBasicTransducer.cc:1720:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 fgetc(file);
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc:115:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s.read(buffer, 24);
data/hfst-3.15.1/libhfst/src/implementations/HfstOlTransducer.cc:144:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_stream.read((char*)&i,sizeof(i));
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1681:25:  [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.
                   cw = sprintf(ptr + cwt, "\n");
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1692:25:  [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.
                   cw = sprintf(ptr + cwt, "\n");
data/hfst-3.15.1/libhfst/src/implementations/HfstTransitionGraph.h:1844:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 fgetc(file);
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:47:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_stream.read((char*)&i,sizeof(i));
data/hfst-3.15.1/libhfst/src/implementations/LogWeightTransducer.cc:109:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(f);
data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.cc:61:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (char) fgetc(input_file); }
data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.cc:75:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(input_file);
data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.cc:100:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(f);
data/hfst-3.15.1/libhfst/src/implementations/SfstTransducer.cc:128:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        fgetc(input_file);
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:245:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input_stream.read((char*)&i,sizeof(i));
data/hfst-3.15.1/libhfst/src/implementations/TropicalWeightTransducer.cc:1281:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(f);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:194: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).
    size_t begin = strlen("@L.");
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:256: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).
    size_t begin = strlen("@L.");
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:257: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).
    size_t stop = str.size() - begin - strlen("@");
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:759: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).
    for(header_loc = 0; header_loc < strlen(header1) + 1; header_loc++)
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:766: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).
    if(header_loc == strlen(header1) + 1)
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:769:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f.read((char*) &remaining_header_len, sizeof(remaining_header_len));
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:774:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        f.read(headervalue, remaining_header_len);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:780: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 length = hfst::size_t_to_int(strlen(headervalue + i));
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:783: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).
            length = hfst::size_t_to_int(strlen(headervalue + i));
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:877: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).
    return name.substr(strlen("@PMATCH_COUNTER_"),
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:878: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).
                       name.size() - strlen("@PMATCH_COUNTER_") - 1);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:1238:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(indextab, TransitionWIndex::size * index_table_size);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/pmatch.cc:1239:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(transitiontab, TransitionW::size * transition_table_size);
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.cc:235: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 ((strlen(s) == 1) && should_ascii_tokenize((unsigned char)(*s))
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.cc:240: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(s) > 1 &&
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:152:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&p), sizeof(T));
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:161:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&prop), sizeof(unsigned int));
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:461:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&input_symbol),
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:463:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&first_transition_index),
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:554:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&input_symbol),
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:556:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&output_symbol),
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:558:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(reinterpret_cast<char*>(&target_index),
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:608:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        {is.read(reinterpret_cast<char*>(&transition_weight), sizeof(Weight));}
data/hfst-3.15.1/libhfst/src/implementations/optimized-lookup/transducer.h:643:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            is.read(p, T::size * index_count);
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:112: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(symbol) < 60) {
data/hfst-3.15.1/libhfst/src/parsers/SfstAlphabet.cc:128: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(symbol) < 70)
data/hfst-3.15.1/libhfst/src/parsers/SfstBasic.cc:21: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* pStringCopy = (char*)malloc(strlen(pString) + 1);
data/hfst-3.15.1/libhfst/src/parsers/SfstBasic.cc:41:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c=fgetc(file);
data/hfst-3.15.1/libhfst/src/parsers/SfstCompiler.cc:671: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).
      for( l=(int)strlen(buffer)-1; l>=0; l-- )
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:372:61:  [1] (buffer) strlen:
  Does not handle 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* name = static_cast<char*>(malloc(sizeof(char)*strlen(line)));
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:962:61:  [1] (buffer) strlen:
  Does not handle 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* name = static_cast<char*>(malloc(sizeof(char)*strlen(line)));
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:994:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t read;
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:1210:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t read;
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:1243: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 ((strlen(start) > 1) || (strlen(end) > 1))
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:1243: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).
        if ((strlen(start) > 1) || (strlen(end) > 1))
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:3982:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t read;
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:4012:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((read > 0) && (read < MAX_FILE_SIZE) && (feof(infile)))
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:4012:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((read > 0) && (read < MAX_FILE_SIZE) && (feof(infile)))
data/hfst-3.15.1/libhfst/src/parsers/XfstCompiler.cc:4840:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read;
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:105: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 jStart = strlen(LEXC_JOINER_START);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:106:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t jEnd = strlen(LEXC_JOINER_END);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:125: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 jStart = strlen(REG_EX_START);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:126:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t jEnd = strlen(LEXC_JOINER_END);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:198: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 token_length = strlen(token);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:223: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(hlexcfilename) + 100));
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:254: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).
    char *error_token = (char*)malloc(sizeof(char)*strlen(hlexctext)+100);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:258:54:  [1] (buffer) strlen:
  Does not handle 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* beforelbr = (char*)malloc(sizeof(char)*strlen(hlexctext)+1);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:264: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).
    else if (strlen(hlexctext) < 80)
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:284: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).
                             strlen(s) * strlen("@0@")
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:284: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).
                             strlen(s) * strlen("@0@")
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:291: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).
                           ((strlen(s) / 2) + 1) * strlen("@ZERO@") + 1);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:291: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).
                           ((strlen(s) / 2) + 1) * strlen("@ZERO@") + 1);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:374:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char* rv = (char*)malloc(sizeof(char)*strlen(s)+1);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:410: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 token_len = strlen(token);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:414: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).
        prefix_len = strlen(prefix);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:418: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).
        suffix_len = strlen(suffix);
data/hfst-3.15.1/libhfst/src/parsers/lexc-utils.cc:420: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).
    varpart_len = strlen(token) - prefix_len - suffix_len;
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:41: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(hfst::pmatch::data) < 60) {
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:229: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).
    char *stripped = (char*)calloc(sizeof(char),strlen(s)+1);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:260: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* ns = static_cast<char*>(malloc(sizeof(char)*strlen(s)*2+1));
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:780:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (*read != '\0') {
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:786:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            *write = *read;
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:787:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ++read;
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:801: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).
    char* rv = static_cast<char*>(malloc(sizeof(char)*(strlen(quoted) + 1)));
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:860:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen(p) < 6) {
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:877:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if (strlen(p) < 10) {
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1012: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(*c) >= 6 && **c == '\\' &&
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1035: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(*c) >= 6 && **c == '\\' &&
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1185: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(data);
data/hfst-3.15.1/libhfst/src/parsers/pmatch_utils.cc:1483:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            infile.read(&vector_data[0], vector_data_size);
data/hfst-3.15.1/libhfst/src/parsers/string_src/string_manipulation.cc:17: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).
  char * new_str = (char *)malloc(sizeof(char)*strlen(str)+1);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:71: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).
    char *error_token = (char*)malloc(sizeof(char)*strlen(hxfsttext)+100);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:75:54:  [1] (buffer) strlen:
  Does not handle 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* beforelbr = (char*)malloc(sizeof(char)*strlen(hxfsttext)+1);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:81: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).
    else if (strlen(hxfsttext) < 80)
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:160:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char* rv = (char*)malloc(sizeof(char)*strlen(s)+1);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:207: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 token_len = strlen(token);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:211: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).
        prefix_len = strlen(prefix);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc: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).
        suffix_len = strlen(suffix);
data/hfst-3.15.1/libhfst/src/parsers/xfst-utils.cc:217: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).
    varpart_len = strlen(token) - prefix_len - suffix_len;
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:66: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 * buffer = (char*) malloc(strlen(msg) + strlen(hfst::xre::data) + strlen(scanner_msg) + 100);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:66: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).
      char * buffer = (char*) malloc(strlen(msg) + strlen(hfst::xre::data) + strlen(scanner_msg) + 100);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:66:78:  [1] (buffer) strlen:
  Does not handle 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 * buffer = (char*) malloc(strlen(msg) + strlen(hfst::xre::data) + strlen(scanner_msg) + 100);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:69: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(hfst::xre::data) < 60)
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:221: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).
    char *stripped = (char*)calloc(sizeof(char),strlen(s)+1);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:256: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).
    char *stripped = (char*)calloc(sizeof(char),strlen(s)+1);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:287: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* ns = static_cast<char*>(malloc(sizeof(char)*strlen(s)*2+1));
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:326: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* rv = static_cast<char*>(malloc(sizeof(char)*strlen(quoted) + 1)); // added + 1
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:525: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(data);
data/hfst-3.15.1/libhfst/src/parsers/xre_utils.cc:571: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(data);
data/hfst-3.15.1/tools/src/hfst-affix-guessify.cc:131: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).
          if (strncmp(optarg, "prefix", strlen("prefix")) == 0)
data/hfst-3.15.1/tools/src/hfst-affix-guessify.cc:135: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 (strncmp(optarg, "suffix", strlen("suffix")) == 0)
data/hfst-3.15.1/tools/src/hfst-affix-guessify.cc:165: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(inputname) < 1)
data/hfst-3.15.1/tools/src/hfst-commandline.cc:145: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).
          ( malloc( sizeof(char)*(strlen("DEBUG: ") + strlen(name) + 1) ) );
data/hfst-3.15.1/tools/src/hfst-commandline.cc:145: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).
          ( malloc( sizeof(char)*(strlen("DEBUG: ") + strlen(name) + 1) ) );
data/hfst-3.15.1/tools/src/hfst-commandline.cc:555:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ssize_t rv = read(fd, buf, count);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:669:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((readbyte = fgetc(stream)) != EOF)
data/hfst-3.15.1/tools/src/hfst-commandline.cc:683: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).
            return strlen(*lineptr);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:695: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).
    return strlen(*lineptr);
data/hfst-3.15.1/tools/src/hfst-commandline.cc:722: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).
    return strlen(*lineptr);
data/hfst-3.15.1/tools/src/hfst-compare.cc:155: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) == 0)
data/hfst-3.15.1/tools/src/hfst-compare.cc:160: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(secondname) == 0)
data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc:314: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(rulename) > 0)
data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc:405: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).
                                                        (strlen(lexiconname) +
data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc:406: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).
                                                         strlen(secondfilename) +
data/hfst-3.15.1/tools/src/hfst-compose-intersect.cc:407: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).
                                                         strlen("compose(%s, interserct(%s))"))
data/hfst-3.15.1/tools/src/hfst-eliminate-flags.cc:137: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-expand-equivalences.cc:279: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).
                if (strlen(from_char) == 0)
data/hfst-3.15.1/tools/src/hfst-expand-equivalences.cc:294: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(to_char) == 0)
data/hfst-3.15.1/tools/src/hfst-expand-equivalences.cc:313: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).
                if (strlen(to_char) == 0)
data/hfst-3.15.1/tools/src/hfst-file-to-mem.cc:23:30:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      *(buffer + numbytes) = fgetc(stdin);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:592: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).
                lookup_len += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:597: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).
                lookup_len += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:621: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).
                input_len += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:626: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).
                input_len += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:657: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).
                space += strlen("0.012345678901234567890");
data/hfst-3.15.1/tools/src/hfst-flookup.cc:674: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).
                                              sizeof(char) * strlen(space_format) * (lookup_len - 1) +1));
data/hfst-3.15.1/tools/src/hfst-flookup.cc:684: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).
                p += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:689: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).
                p += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:717: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).
                                              sizeof(char) * strlen(space_format) * (input_len - 1) +1));
data/hfst-3.15.1/tools/src/hfst-flookup.cc:727: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).
                p += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:732: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).
                p += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:758: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).
        space += 2 * strlen(markup);
data/hfst-3.15.1/tools/src/hfst-flookup.cc:1063: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).
              = static_cast<char*>(calloc(sizeof(char),strlen(*s)+1));
data/hfst-3.15.1/tools/src/hfst-flookup.cc:1065:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *markup = static_cast<char*>(calloc(sizeof(char), strlen(*s)+1));
data/hfst-3.15.1/tools/src/hfst-flookup.cc:1559: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-fst2txt.cc:202: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-grep.cc:494: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-head.cc:140: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-head.cc:175:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-lexc-wrapper.cc:200: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).
            hfst_write(temporary_fd, fdata, strlen(fdata));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:588: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).
                lookup_len += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:593: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).
                lookup_len += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:617: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).
                input_len += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:622: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).
                input_len += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:653: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).
                space += strlen("0.012345678901234567890");
data/hfst-3.15.1/tools/src/hfst-lookup.cc:670: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).
                                              sizeof(char) * strlen(space_format) * (lookup_len - 1) +1));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:680: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).
                p += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:685: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).
                p += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:713: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).
                                              sizeof(char) * strlen(space_format) * (input_len - 1) +1));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:723: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).
                p += strlen(space_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:728: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).
                p += strlen(epsilon_format);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:754: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).
        space += 2 * strlen(markup);
data/hfst-3.15.1/tools/src/hfst-lookup.cc:1059: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).
              = static_cast<char*>(calloc(sizeof(char),strlen(*s)+1));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:1061:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *markup = static_cast<char*>(calloc(sizeof(char), strlen(*s)+1));
data/hfst-3.15.1/tools/src/hfst-lookup.cc:1760: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-multiply.cc:133: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:282: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).
    for(header_loc = 0; header_loc < strlen(header1) + 1; header_loc++)
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:284:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(f);
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:289: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).
    if(header_loc == strlen(header1) + 1) // we found it
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:294:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            getc(f) != '\0') {
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:328:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ( (byte = fgetc(f)) != 0 )
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:339: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(line) >= 5 && line[0] == '@' && line[strlen(line) - 1] == '@' && line[2] == '.')
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:339: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).
  if (strlen(line) >= 5 && line[0] == '@' && line[strlen(line) - 1] == '@' && line[2] == '.')
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:432: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(p) == 1) && (unsigned char)(*p) <= 127
data/hfst-3.15.1/tools/src/hfst-optimized-lookup.cc:439:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(p) > 1 &&
data/hfst-3.15.1/tools/src/hfst-pair-test-commandline.h:137: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).
  size_t program_name_length = strlen(program_name);
data/hfst-3.15.1/tools/src/hfst-pmatch2fst.cc:240:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((c = fgetc(inputfile)) != EOF) {
data/hfst-3.15.1/tools/src/hfst-proc/alphabet.cc:67:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(c) == 1)
data/hfst-3.15.1/tools/src/hfst-proc/alphabet.cc:135:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(c) > 1 ||
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:48: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).
  for(header_loc = 0; header_loc < (int)strlen(header1) + 1; header_loc++)
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:54: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(header_loc == (int)strlen(header1) + 1) // we found it
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:57:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      is.read(reinterpret_cast<char*>(&remaining_header_len),
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:66: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).
      remaining_header_len -= strlen(headervalue) + 1;
data/hfst-3.15.1/tools/src/hfst-proc/hfst-proc.cc:69: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).
          remaining_header_len -= strlen(headervalue) + 1;
data/hfst-3.15.1/tools/src/hfst-proc/tokenizer.cc:124: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).
  retval.resize(strlen(&retval[0]));
data/hfst-3.15.1/tools/src/hfst-proc/tokenizer.h:51:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  {type=Character; strncpy(character,c,4); character[4]='\0';}
data/hfst-3.15.1/tools/src/hfst-remove-epsilons.cc:125: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-repeat.cc:200: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).
                                             (strlen("repeat-%lu-to-%lu"))
data/hfst-3.15.1/tools/src/hfst-repeat.cc:208: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).
                                             (strlen("_%lu^%lu"))
data/hfst-3.15.1/tools/src/hfst-repeat.cc:227: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).
                                             (strlen("repeat-%lu-plus"))
data/hfst-3.15.1/tools/src/hfst-repeat.cc:235: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).
                                             (strlen("_%lu^∞"))
data/hfst-3.15.1/tools/src/hfst-split.cc:153: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).
                             strlen(prefix) + strlen(extension) +
data/hfst-3.15.1/tools/src/hfst-split.cc:153: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).
                             strlen(prefix) + strlen(extension) +
data/hfst-3.15.1/tools/src/hfst-split.cc:154: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).
                             strlen("123456789012345678901234567890")));
data/hfst-3.15.1/tools/src/hfst-strings2fst.cc:436: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).
          if (strlen(multichar_line) > 0)
data/hfst-3.15.1/tools/src/hfst-strip-header.cc:95:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int c = getc(f_in);
data/hfst-3.15.1/tools/src/hfst-strip-header.cc:106:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          c = getc(f_in);
data/hfst-3.15.1/tools/src/hfst-substitute.cc:244: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(from_label) == 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:268: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(to_label) == 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:358: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(to_name) <= 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:382: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(to_name) <= 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:469: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(to_name) <= 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:493: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(to_name) <= 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:624: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(inputname) <= 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:674: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).
              if (strlen(from_label) == 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:682: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).
              if (strlen(to_label) == 0)
data/hfst-3.15.1/tools/src/hfst-substitute.cc:784: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).
                                         (strlen(from_file_name) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:785: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).
                                          strlen("substitutions-from-%s"))
data/hfst-3.15.1/tools/src/hfst-substitute.cc:794: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).
                                         (strlen(from_file_name) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:795: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).
                                          strlen("♲%s"))
data/hfst-3.15.1/tools/src/hfst-substitute.cc:807: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).
                                         (strlen(from_label) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:808: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).
                                          strlen(to_label) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:809: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).
                                          strlen("substitute-%s-with-%s"))
data/hfst-3.15.1/tools/src/hfst-substitute.cc:818: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).
                                         (strlen(from_label) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:819: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).
                                          strlen(to_label) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:820: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).
                                          strlen("%s ♲ %s"))
data/hfst-3.15.1/tools/src/hfst-substitute.cc:836: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).
                                         (strlen(from_label) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:837: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).
                                          strlen(to_transducer_filename) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:838: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).
                                          strlen("substitute-%s-with-net-%s"))
data/hfst-3.15.1/tools/src/hfst-substitute.cc:847: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).
                                         (strlen(from_label) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:848: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).
                                          strlen(to_transducer_filename) +
data/hfst-3.15.1/tools/src/hfst-substitute.cc:849: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).
                                          strlen("%s ♲ %s"))
data/hfst-3.15.1/tools/src/hfst-traverse.cc:73: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 (text);
data/hfst-3.15.1/tools/src/hfst-traverse.cc:237: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).
            if ((strcmp(label, "quit") == 0) || (strlen(label) == 0))
data/hfst-3.15.1/tools/src/lexc-readline-ui.cc:110: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).
      if (strncmp(p, "banner", strlen("banner")) == 0)
data/hfst-3.15.1/tools/src/lexc-readline-ui.cc:114: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).
      else if (strncmp(p, "?", strlen("?")) == 0)
data/hfst-3.15.1/tools/src/lexc-readline-ui.cc:118: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).
      else if (strncmp(p, "quit", strlen("quit")) == 0)
data/hfst-3.15.1/tools/src/parsers/hfst-xfst.cc:297: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(text);

ANALYSIS SUMMARY:

Hits = 1182
Lines analyzed = 289047 in approximately 7.75 seconds (37315 lines/second)
Physical Source Lines of Code (SLOC) = 211432
Hits@level = [0] 1513 [1] 498 [2] 398 [3] 100 [4] 186 [5]   0
Hits@level+ = [0+] 2695 [1+] 1182 [2+] 684 [3+] 286 [4+] 186 [5+]   0
Hits/KSLOC@level+ = [0+] 12.7464 [1+] 5.59045 [2+] 3.23508 [3+] 1.35268 [4+] 0.879715 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.