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/dune-uggrid-2.7.0/dune/uggrid/commands.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/dimension.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/bio.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/fifo.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/initlow.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/misc.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/fifo.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/scan.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/heaps.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugtypes.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/namespace.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugtimer.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/initlow.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/architecture.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/defaults.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/heaps.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/general.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugtime.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/ugtimer.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/defaults.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/debug.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/test/test-fifo.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/evm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/mgheapmgr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/gmcheck.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/er.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/pargm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/enrol.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/shapes.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/refine.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/evalproc.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-tetrahedron-rules-test.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/er.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-write2file.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-write2file.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/mgheapmgr.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/shapes.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/dlmgr.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/GenerateRules.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/evm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/RefRules.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/elements.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/dlmgr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/cw.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/gm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-writeRefRules2file.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/initgm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/cw.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/enrol.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/refine.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/initgm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/elements.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-show.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/gm/GenerateRules.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ppif/ppif.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ppif/ppif.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ppif/ppifcontext.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/dddi.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/notify.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/topo.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/ooppcc.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/notify.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/oopp.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/io.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/lowcomm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/test/testbtree.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/lowcomm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/reduct.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ddd.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ctrl/stat.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ctrl/debug.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ctrl/cons.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ctrl/stat.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/sll.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/xfer.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/unpack.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/cplmsg.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/ctrl.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/pack.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/xfer.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/cmdmsg.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/cmds.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/supp.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/memmgrs/memmgr_std.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/objmgr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/prio.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/attr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/typemgr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/cplmgr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/join/join.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/join/jcmds.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/join/join.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcheck.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifuse.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifobjsc.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/if.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcreate.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcmds.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/include/dddaddon.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/include/ddd.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/include/dddio.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/include/memmgr.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/dddcontext.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ident/ident.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/prio/pcmds.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/analyser/inv.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/partition.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/gridcons.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/overlap.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/parallel.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/initddd.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/source.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/identify.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/memmgr.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/support.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/priority.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/identify.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/pgmcheck.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/compat.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/trans.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/lbrcb.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/lb.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/initug.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/commands.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/domain/domain.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/domain/std_internal.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/initug.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/udm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/sm.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/udm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/initnp.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/np.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/sm.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/initnumerics.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.h
Examining data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc

FINAL RESULTS:

data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:131:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(argv[0],expandfmt(" configure %" NAMELENSTR "[ -~]"),BVPName) != 1 || strlen(BVPName) == 0)
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:221:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(argv[0],expandfmt(" new %" NAMELENSTR "[ -~]"),Multigrid) != 1 || strlen(Multigrid)==0)
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:235:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (sscanf(argv[i],expandfmt("b %" NAMELENSTR "[ -~]"),BVPName) != 1)
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:244:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (sscanf(argv[i],expandfmt("f %" NAMELENSTR "[ -~]"),Format) != 1)
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:557:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(argv[0], expandfmt(" configure %" NAMELENSTR "[ -~]"), BVPName) != 1
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:567:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (sscanf(argv[i], expandfmt("d %" NAMELENSTR "[ -~]"), DomainName) != 1
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:1371: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 (BVPD_NAME (theBVPDesc), ENVITEM_NAME (theBVP));
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:2541:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(msg, " ERROR: missing connection between elem0=" EID_FMTX " elem1=" EID_FMTX,
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:3894:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  res = sscanf(data,expandfmt("%2[rlud]"),ord);
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:3896:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  res = sscanf(data,expandfmt("%3[rlbfud]"),ord);
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:4039:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  res = sscanf(data,expandfmt("%2[rlud]"),ord);
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:4041:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  res = sscanf(data,expandfmt("%3[rlbfud]"),ord);
data/dune-uggrid-2.7.0/dune/uggrid/gm/cw.cc:613:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  ListAllCWsOfAllObjectTypes(printf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/er.cc:167:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PrintDebug              printf
data/dune-uggrid-2.7.0/dune/uggrid/gm/refine.cc:6046:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(PFMT "AdaptMultiGrid(): %d. ConsCheck() on level=%d\n",theMG->ppifContext().me(),(*check)++,level);
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-show.cc:42:67:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    NS_DIM_PREFIX ShowRefRuleX(NS_DIM_PREFIX TETRAHEDRON, i, std::printf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-write2file.cc:80:14:  [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.
  using std::fprintf;
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-write2file.cc:102:14:  [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.
  using std::fprintf;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:269:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,BN_HEADER_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:301:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream,EOL_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:304:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,IN_HEADER_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:316:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream,IN_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:319:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(stream,EOL_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:324:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,IE_HEADER_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:329:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stream,IE_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:332:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stream,EOL_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:336:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,EOF_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:376:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,HEADER_FMT,BVPD_NAME(&theBVPDesc),buffer,name,comment);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:384:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,BN_HEADER_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:409: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(stream,EOL_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:413:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,IN_HEADER_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:420: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(stream,IN_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:423: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(stream,EOL_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:430:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,IE_HEADER_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:434: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(stream,IE_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:437: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(stream,EOL_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:441:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(stream,EOF_FMT);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1333:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(filename,MG_FILENAME(theMG));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1343:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(itype,l);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1345:7:  [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(filename,buf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1350:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(itype,type);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1352:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(filename,name);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1359: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(itype,type);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1361:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(filename,name);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1368: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(filename,buf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1369: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(filename,itype);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1390: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(filename,buf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1412: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(mg_general.version,MGIO_VERSION);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1414: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).
  if (p!=NULL) strcpy(mg_general.ident,p);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1416: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(mg_general.DomainName,BVPD_NAME(&theBVPDesc));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1417: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(mg_general.MultiGridName,MGNAME(theMG));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1418: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(mg_general.Formatname,ENVITEM_NAME(MGFORMAT(theMG)));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1510: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(MG_FILENAME(theMG),filename);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1677: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(MG_FILENAME(theMG),filename);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2837:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(itype,type);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2839:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(filename,name);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2846: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(itype,type);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2848:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(filename,name);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2851: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(filename,buf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2852: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(filename,itype);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2863: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(filename,buf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2901: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(filename,buf);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2936:22:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if (BVPName==NULL) strcpy(BndValName,mg_general.DomainName);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2937:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  else strcpy(BndValName,BVPName);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2938:28:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if (MultigridName==NULL) strcpy(MGName,mg_general.MultiGridName);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2939:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  else strcpy(MGName,MultigridName);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2940: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).
  if (format==NULL) strcpy(FormatName,mg_general.Formatname);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2941:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  else strcpy(FormatName,format);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2990: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(MG_FILENAME(theMG),filename);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:3061: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(MG_FILENAME(theMG),filename);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:3328: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(MG_FILENAME(theMG),filename);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:3479: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(MG_FILENAME(theMG),filename);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:2634:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PFMT "el " EID_FMTX " son " EID_FMTX " vertex " VID_FMTX "\n",theGrid->ppifContext().me(),EID_PRTX(theElement),EID_PRTX(theSon),VID_PRTX(MYVERTEX(CORNER(theSon,CORNER_OF_SIDE(theSon,son_side,i)))));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:2635:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PFMT "NTYPE = MID_NODE\n",theGrid->ppifContext().me());
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:2637:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PFMT "EDSUBDOM = %d\n",theGrid->ppifContext().me(),(int)EDSUBDOM(theFatherEdge));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:2640:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PFMT "BVOBJ(theFatherEdge): %d %d\n",theGrid->ppifContext().me(),(int)t1,(int)t2);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:5658:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf( PFMT "MultiGridStatus: wrong element prio %d\n",me,EPRIO(theElement));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9208:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(out,"ELEMID=" EID_FFMTE " %5s %5s CTRL=%8lx CTRL2=%8lx REFINE=%2d MARK=%2d LEVEL=%2d",
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9212:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(out,"ELEMID=" EID_FFMTE, EID_PRTE(theElement));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9235: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( out, tmp );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9241: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( out, tmp );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9254: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( out, tmp );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9275:11:  [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( out, tmp );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9281: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( out, tmp );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9307: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( out, tmp );
data/dune-uggrid-2.7.0/dune/uggrid/initug.cc:168:13:  [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 (buffer, " %s ", debugfilename) == 1))
data/dune-uggrid-2.7.0/dune/uggrid/initug.cc:180:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      SetPrintDebugProc (printf);
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:100:33:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static PrintfProcPtr printdebug=printf;
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:133:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buffer,format,args);
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:146:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(buffer);
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:169: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(debugfile,format,args);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:338: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(based_filename,BasePath);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:339: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(based_filename,fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:363: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(new_fname,fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:599: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(thePaths->path[i],Path[i]);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:716: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(fullname,thePaths->path[i]);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:717: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(fullname,fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:815: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(fullname,thePaths->path[i]);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:816: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(fullname,fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:887: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(fullname,path);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:888: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(fullname,fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:946: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(fullname,thePaths->path[i]);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:947: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(fullname,fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:175: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(str,end);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:323:7:  [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,p0);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:344:7:  [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,var);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:350: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,p0);
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:110:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(argv[i],"%s %lf",option,&value)!=2)
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:148:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(argv[i],"%s %d",option,&value)!=2)
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:189:14:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if ((k=sscanf(argv[i],"%s %lf %d",option,&value,&ivalue))<2)
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:228:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
      if (sscanf(argv[i],
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:233: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(buffer,value);
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:280:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(argv[i],"%s %s",option,size_input)!=2)
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:323:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(argv[i],"%s %d",option,&value) == 2)
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:218: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(s,DIRSEP);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:221: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(s,path[i]->name); strcat(s,DIRSEP);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:221:30:  [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(s,path[i]->name); strcat(s,DIRSEP);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:307: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(newItem->v.name,name);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:276: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(token,nexttoken);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:498: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(s,STRUCTSEP);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:501: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(s,path[i]->name); strcat(s,STRUCTSEP);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:501:30:  [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(s,path[i]->name); strcat(s,STRUCTSEP);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:574: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(newItem->v.name,name);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:784: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(myVar->s,sval);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:892: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(myVar->s,sval);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1113:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(buffer+bufPos,ENVITEM_NAME(theItem)); bufPos+=n;
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1194: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(buffer,ENVITEM_NAME(StrVar));
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1203: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(buffer, str);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:173:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  s += sprintf(s,"%s%s:",indent,ENVITEM_NAME(vd));
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:175:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    s += sprintf(s,VFORMAT,VM_COMP_NAME(vd,off+i),data[VD_CMP_OF_TYPE(vd,type,i)]);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:226:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    s += sprintf(s,"%s%s:",indent,ENVITEM_NAME(md));
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:231:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        s += sprintf(s,MFORMAT,VM_COMP_NAME(md,2*(off+i*nc+j)),
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:235:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        s += sprintf(s,MFORMAT,VM_COMP_NAME(md,2*(off+i*nc+j)),
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:569:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(names,"%s",tpltname) != 1)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:620:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      if (sscanf(argv[opt],"comp %s",VT_COMPNAMES(vt))!=1) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:645:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          if (sscanf(argv[opt],"ident %s",ident)!=1) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:701: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(SUBV_NAME(subv),token);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:745:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(names,"%s %d",tpltname,&n) != 2)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1004: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(tpltname,subname);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1055:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(tpltname,subname);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1214:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(names,"%s",tpltname) != 1)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1306:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        if (sscanf(argv[opt],"comp %s",MT_COMPNAMES(mt))!=1) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1368:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(SUBM_NAME(subm),token);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1470:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  if (sscanf(names,"%s %d",tpltname,&n) != 2)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1769:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(argv[0],expandfmt(" newformat %" NAMELENSTR "[ -~]"), formatname) != 1 || strlen(formatname) == 0) {
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/io.cc:181:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buffer,"DDD %s %05d: %s\n",classText,error_no,text);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.cc:569:9:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        scanf("%s", buff);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.cc:654:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(PREFIX "master(e" EGID_FMT ", p%02d).\n", EGID(e), me);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.cc:661:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        printf(PREFIX "nb(e" EGID_FMT ", e" EGID_FMT ").\n", EGID(e), EGID(enb));
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:276:15:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  int count = vsprintf(buffer,format,args);
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:378:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buffer,format,args);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:338:13:  [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.
      var = getenv(p0);
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:128:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char BVPName[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:216: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 Multigrid[NAMESIZE],BVPName[NAMESIZE],Format[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:222: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(Multigrid,"untitled-%d",(int)untitledCounter++);
data/dune-uggrid-2.7.0/dune/uggrid/domain/domain.h:133: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[NS_PREFIX NAMELEN];
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:469:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
CreateLinearSegment (const char *name,
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:552: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 BVPName[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:553: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 DomainName[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:3003: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.
  if (sprintf (data, "bn %d %f", pid, (float) bp->local[0][0]) >
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:3009: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.
  if (sprintf (data, "bn %d %f %f", (int) pid,
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.h:110:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void *CreateLinearSegment (const char *name,
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_internal.h:324: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 bnd_file[NS_PREFIX NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_internal.h:327: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 mesh_file[NS_PREFIX NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:143: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(data,&i,sizeof(INT));
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:145: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(data,bnds[i],size);
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:149: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(data,&i,sizeof(INT));
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:157: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(&i,data,sizeof(INT));
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:169: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(bs,data,size);
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:173: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(&i,data,sizeof(INT));
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:198: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(data,bndp,cnt);
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_parallel.cc:207: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(*bndp,data,cnt);
data/dune-uggrid-2.7.0/dune/uggrid/gm/GenerateRules.cc:1327: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).
    stream = fopen("RefRules.data","w");
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:2538: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 msg[128];
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:3890: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 ord[3];
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:4035: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 ord[3];
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.h:94: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.
extern const char *ObjTypeName[MAXVOBJECTS];
data/dune-uggrid-2.7.0/dune/uggrid/gm/cw.cc:353: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 bitpat[33];
data/dune-uggrid-2.7.0/dune/uggrid/gm/er.cc:448: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(HR_ERULE(hr),    er,             sizeof(ERULE)+sizeof(DOUBLE)*(ER_NSONS(er)-MAX_SONS));
data/dune-uggrid-2.7.0/dune/uggrid/gm/er.cc:449: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(HR_OCOPTR(hr),   oco,    sizeof(DOUBLE)*ER_NSONS(er));
data/dune-uggrid-2.7.0/dune/uggrid/gm/er.cc:857: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(er,data,sizeof(ERULE));
data/dune-uggrid-2.7.0/dune/uggrid/gm/gm.h:370: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 VTypeNames[MAXVECTORS];
data/dune-uggrid-2.7.0/dune/uggrid/gm/gm.h:422: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 t2n[MAXVECTORS];
data/dune-uggrid-2.7.0/dune/uggrid/gm/gm.h:1604: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 filename[NS_PREFIX NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:121: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 buffer[MGIO_BUFFERSIZE]; /* general purpose buffer		*/
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:233: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).
  stream = fopen(filename,"r");
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:272: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).
  stream = fopen(filename,"w");
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:319:5:  [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(mg_general->version,"UG_IO_2.3");
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:947: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[28];
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:1226: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[128];
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.h:177: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 version[MGIO_NAMELEN];       /* version of i/o                                                   */
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.h:179: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 ident[MGIO_IDENTLEN];            /* identification string from input file        */
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.h:193: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 DomainName[MGIO_NAMELEN];                /* name of domain in ug                         */
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.h:194: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 MultiGridName[MGIO_NAMELEN];             /* name of multigrid                            */
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.h:197: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 Formatname[MGIO_NAMELEN];                /* name of format used in ug            */
data/dune-uggrid-2.7.0/dune/uggrid/gm/refine.cc:1985: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(data,theElement,sizeof(struct generic_element));
data/dune-uggrid-2.7.0/dune/uggrid/gm/refine.cc:2060: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(theMaster,data,sizeof(struct generic_element));
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-show.cc:29:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    std::FILE* stream = std::fopen(argv[1], "r");
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-writeRefRules2file.cc:29:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    std::FILE* stream = std::fopen(filename, "r");
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm-writeRefRules2file.cc:39:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    std::FILE* stream = std::fopen(filename, "w");
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.cc:2825: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[128];
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.cc:2833: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.
  j = sprintf(buffer," corners=");
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.cc:2836:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    j += sprintf(buffer+j,"%2d ",(int)theSonData.corners[i]);
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.cc:2841:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  j += sprintf(buffer,"  nb=");
data/dune-uggrid-2.7.0/dune/uggrid/gm/rm.cc:2844:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    j += sprintf(buffer+j,"%2d ",(int)theSonData.nb[i]);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:257: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[BUFFERSIZE];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:351: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[BUFFERSIZE];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1287: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 filename[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1288:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64],itype[10];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1344: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(buf,".%06d",lastnumber);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1353:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(filename,".000000");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1367:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,".ug.mg.");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1389:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"/mg.%04d",(int)theMG->ppifContext().me());
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1415:8:  [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.
  else strcpy(mg_general.ident,"---");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2804: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 FormatName[NAMESIZE], BndValName[NAMESIZE], MGName[NAMESIZE], filename[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2809:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64],itype[10];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2840:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(filename,".000000");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2850:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,".ug.mg.");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2862:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"/mg.%04d",(int)me);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:2900:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,"/mg.%04d",(int)me);                      /* Also me>=nparfiles needs its filename to be stored in the multigrid */
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:3522: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).
  stream = fopen(docName,"w");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:130: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 buffer[4*256];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:5464:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  default :        sprintf( buffer, "unrecognized object type %d", OBJT(obj) );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:5475: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(buffer,"   %-20.20s %-20.20s %-20.20s %10.10s %10.10s\n","mg name","domain name","problem name","heap size","heap used");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:5477: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(buffer,"   %-20.20s\n","mg name");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6302: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 etype[10];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6303: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 ekind[8];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6310:38:  [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.
    case TRIANGLE :                  strcpy(etype,"TRI"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6311:38:  [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.
    case QUADRILATERAL :             strcpy(etype,"QUA"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6312:30:  [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.
    default :                strcpy(etype,"???"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6317:38:  [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.
    case TETRAHEDRON :               strcpy(etype,"TET"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6318:38:  [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.
    case PYRAMID :                   strcpy(etype,"PYR"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6319:46:  [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.
    case PRISM :                             strcpy(etype,"PRI"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6320:38:  [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.
    case HEXAHEDRON :                strcpy(etype,"HEX"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6321:30:  [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.
    default :                strcpy(etype,"???"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6325:36:  [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.
  case YELLOW_CLASS :              strcpy(ekind,"YELLOW "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6326:36:  [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.
  case GREEN_CLASS :               strcpy(ekind,"GREEN  "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6327:36:  [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.
  case RED_CLASS :                 strcpy(ekind,"RED    "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:6328:28:  [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.
  default :                strcpy(ekind,"???    "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9171:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char out[2000];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9172: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 tmp[200];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9173: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 etype[10];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9174: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 ekind[8];
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9187:30:  [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.
    case TRIANGLE :          strcpy(etype,"TRI"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9188:30:  [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.
    case QUADRILATERAL :     strcpy(etype,"QUA"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9189:30:  [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.
    default :                strcpy(etype,"???"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9194:30:  [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.
    case TETRAHEDRON :       strcpy(etype,"TET"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9195:30:  [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.
    case PYRAMID :           strcpy(etype,"PYR"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9196:30:  [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.
    case PRISM :             strcpy(etype,"PRI"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9197:30:  [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.
    case HEXAHEDRON :        strcpy(etype,"HEX"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9198:30:  [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.
    default :                strcpy(etype,"???"); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9202:28:  [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.
  case YELLOW_CLASS :      strcpy(ekind,"YELLOW "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9203:28:  [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.
  case GREEN_CLASS :       strcpy(ekind,"GREEN  "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9204:28:  [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.
  case RED_CLASS :         strcpy(ekind,"RED    "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9205:28:  [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.
  default :                strcpy(ekind,"???    "); break;
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9214:28:  [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.
  if (COARSEN(theElement)) strcat(out," COARSEN");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9219: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(tmp,"    N%d=" ID_FMTX " x=%g  y=%g\n",
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9227: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(tmp,"    N%d=" ID_FMTX " x=%g  y=%g z=%g\n",
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9240: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(tmp,"    FA=" EID_FMTX "\n" ,EID_PRTX(EFATHER(theElement)));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9244:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat( out,"    FA=NULL\n");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9253: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(tmp,"    SON%d " EID_FMTX "\n" ,i,EID_PRTX(SonList[i]));
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9259: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(tmp,"        N%d= " ID_FMTX " x=%g  y=%g\n",
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9267: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(tmp,"        N%d= " ID_FMTX " x=%g  y=%g z=%g\n",
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9280:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(tmp," key=%d\n", KeyForObject((KEY_OBJECT *)theElement) );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9286:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat( out," boundary element\n" );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9288:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat( out," no boundary element\n" );
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9295: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(tmp,"    NODE[ID=%ld]: x=%g y=%g",
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9301: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(tmp,"    NODE[ID=%ld]: x=%g y=%g z=%g",
data/dune-uggrid-2.7.0/dune/uggrid/initug.cc:119: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[256];
data/dune-uggrid-2.7.0/dune/uggrid/initug.cc:120: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 debugfilename[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:89: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  *rep_err_file[REP_ERR_MAX];
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:128:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.h:144: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.
extern const char  *rep_err_file[REP_ERR_MAX];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:113:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char PATH[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:136: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 BasePath[BASE_PATH_SIZE] = "./";
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:209:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char fullpath[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:278:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char fullpath[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:333: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 based_filename[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:355:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (do_rename && (f=fopen(fname,"r"))!=NULL)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_fname[128];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:479:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen(fname,mode);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:573: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 *Path[MAXPATHS];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:574: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 *token,buffer[BUFFLEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:683: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 fullname[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:708: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).
    if ( (parentDir=fopen(thePaths->path[i],"r")) == NULL )
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:802: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 fullname[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:882: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 fullname[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:933: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 fullname[MAXPATHLENGTH];
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:124:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void NS_PREFIX INT_2_bitpattern (INT n, char text[33])
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:182: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 newfmt[FMTBUFFSIZE];
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:472:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(s, "%g M",mem/MBYTE);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.h:131:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void            INT_2_bitpattern        (INT n, char text[33]);
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:104: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 option[OPTIONLEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:142: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 option[OPTIONLEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:182: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 option[OPTIONLEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:222: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 option[OPTIONLEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:223: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 value[VALUELEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:275: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 option[OPTIONLEN],size_input[20];
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:317: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 option[OPTIONLEN];
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:97: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(root->name,"root");
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:124: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 token[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:617:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(s,"no heap information available\n");
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.h:133: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[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.h:151: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[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:95: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 token[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:170: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 token[NAMESIZE];                    /* must be global for lastnameHnd ! */
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:171: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 nexttoken[NAMESIZE];        /* must be global for lastnameHnd ! */
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:915: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[30];
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:917:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer,"%-.14g",value);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1114:7:  [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(buffer+bufPos," = "); bufPos+=3;
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1122:11:  [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(buffer+bufPos,"{}\n"); bufPos+=3;
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1196:5:  [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(buffer," = ");
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.h:73:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[1];                                            /* allocated as needed                                          */
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:83: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[256];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:95:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    i += sprintf(buffer,"x=%5.2f y=%5.2f ",pos[0],pos[1]);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:97:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      i += sprintf(buffer+i,"z=%5.2f ",pos[2]);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:101:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    i += sprintf(buffer,"                ");
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:103:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      i += sprintf(buffer+i,"        ");
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:108:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    i += sprintf(buffer+i,"u[%d]=%15.8f ",j,VVALUE(v,comp));
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:110:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  i += sprintf(buffer+i,"   cl %d %d sk ",VCLASS(v),VNCLASS(v));
data/dune-uggrid-2.7.0/dune/uggrid/numerics/disctools.cc:111:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  i += sprintf(buffer+i,"n %d t %d o %d\n",VNEW(v),VTYPE(v),VOTYPE(v));
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:92: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 default_type_names[MAXVECTORS];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:548: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 tpltname[NAMESIZE],*names,*token,*p,tp;
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:549: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 ident[V_COMP_NAMES];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:790:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *t,tpltname[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:791: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 txx[4];        /* field for building the sparse format name */
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:980:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *t,tpltname[NAMESIZE],subname[NAMESIZE];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1193: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 tpltname[NAMESIZE],*names,*token,rt,ct,*p;
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1765: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 formatname[NAMESIZE],TypeNames[NVECTYPES];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.h:121: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[NS_PREFIX NAMESIZE];          /*!<  prefix for sub vector name   */
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.h:134: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 CompNames[V_COMP_NAMES];         /*!< comp names (one char each)   */
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.h:148: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[NS_PREFIX NAMESIZE];          /*!< prefix for sub matrix name   */
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.h:167: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 CompNames[M_COMP_NAMES];         /*!< comp names (two chars each)  */
data/dune-uggrid-2.7.0/dune/uggrid/numerics/udm.h:179: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 compNames[MAX_VEC_COMP];
data/dune-uggrid-2.7.0/dune/uggrid/numerics/udm.h:238: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 compNames[2*MAX_MAT_COMP];
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/analyser/inv.cc:141:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(filename, "w");
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/basic/io.cc:160: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[256];
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/ctrl/cons.cc:189:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(LC_GetPtr(cm->msg_h, ctx.constab_id),
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcreate.cc:318: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((void *)theIF[ifId].cpl, (void *)tmpcpl, sizeof(COUPLING *)*n);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcreate.cc:510:1:  [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(theIF[nIFs].O, O, nO*sizeof(DDD_TYPE));
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcreate.cc:511:1:  [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(theIF[nIFs].A, A, nA*sizeof(DDD_PRIO));
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcreate.cc:512:1:  [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(theIF[nIFs].B, B, nB*sizeof(DDD_PRIO));
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/objmgr.cc:723: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(((char *)target)+desc->size,
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/mgr/typemgr.cc:663: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(desc->element[i].gbits.get(), gbits, argsize);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/cmdmsg.cc:201: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((char *)array,
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/cmdmsg.cc:251: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((char *) (unionGidTab.data()+pos),
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/cmds.cc:1180: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(xa->sizes, sizes, sizeof(int)*cnt);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/pack.cc:421: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(currObj, obj, xi->size);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/unpack.cc:1537: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(allNewCpl+pos1, LC_GetPtr(xm,ctx.newcpl_id),
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/xfer/xfer.cc:702: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(origD, itemsD, sizeof(XIDelCmd *) * nD);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.cc:149:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    DDD_IF ifId = atoi(arg+1);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/debugger.cc:546: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 buff[100];
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:313:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(Data[nmat],mat,Size);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:420: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.
          memcpy(conn,mcopy,sizeof(MATRIX)-sizeof(DOUBLE));
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:513: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.
          memcpy(newm,mcopy,sizeof(MATRIX)-sizeof(DOUBLE));
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:806:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(data, &size, sizeof size);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:809:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(data, entity->message_buffer(), size);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:819:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(&size, data, sizeof size);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:823:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buffer, data, size);
data/dune-uggrid-2.7.0/dune/uggrid/parallel/dddif/handler.cc:1420:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, (char *)edge, size);
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:97: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 logpath[BUFFSIZE];
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:270: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[VAR_ARG_BUFLEN];
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:319: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 classText[32];
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:326:5:  [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(classText,"WARNING");
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:330:5:  [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(classText,"ERROR");
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:335:5:  [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(classText,"FATAL");
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:340:5:  [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(classText,"USERERROR");
data/dune-uggrid-2.7.0/dune/uggrid/ugdevices.cc:372: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[256];
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:131:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (sscanf(argv[0],expandfmt(" configure %" NAMELENSTR "[ -~]"),BVPName) != 1 || strlen(BVPName) == 0)
data/dune-uggrid-2.7.0/dune/uggrid/commands.cc:221:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (sscanf(argv[0],expandfmt(" new %" NAMELENSTR "[ -~]"),Multigrid) != 1 || strlen(Multigrid)==0)
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:558: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).
      || strlen(BVPName) == 0)
data/dune-uggrid-2.7.0/dune/uggrid/domain/std_domain.cc:568: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(DomainName) == 0)
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:3903: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(ord)!=DIM)
data/dune-uggrid-2.7.0/dune/uggrid/gm/algebra.cc:4048: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(ord)!=DIM)
data/dune-uggrid-2.7.0/dune/uggrid/gm/cw.cc:96:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  INT read;             /**< Number of accesses to read		*/
data/dune-uggrid-2.7.0/dune/uggrid/gm/mgio.cc:72: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).
#define MGIO_CHECK_BUFFERIZE(s)         if (strlen(s)>MGIO_BUFFERSIZE) return (1)
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugio.cc:1712: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).
  if (name==NULL || strcmp(name+strlen(name)-4,".scr")!=0)
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:2828:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name)>=NAMESIZE || strlen(name)<=1) return (NULL);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:2828: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).
  if (strlen(name)>=NAMESIZE || strlen(name)<=1) return (NULL);
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9215:3:  [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(out,"\n");
data/dune-uggrid-2.7.0/dune/uggrid/gm/ugm.cc:9309:7:  [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( out,"\n");
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:176:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    string[i] = fgetc(stream);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:180:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  string[i] = fgetc(stream);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:191: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).
  len = strlen(string);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:264:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    string[i] = fgetc(stream);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:268:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  string[i] = fgetc(stream);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:280: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).
  len = strlen(string);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:334:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    string[i] = fgetc(stream);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:338:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  string[i] = fgetc(stream);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:350: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).
  len = strlen(string);
data/dune-uggrid-2.7.0/dune/uggrid/low/bio.cc:472:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (fgetc(stream)==EOF) return (1);
data/dune-uggrid-2.7.0/dune/uggrid/low/debug.cc:204:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ((c=getc(debugfile))==EOF)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:157:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name)>=NAMESIZE || strlen(name)<=1) return (NULL);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:157: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).
  if (strlen(name)>=NAMESIZE || strlen(name)<=1) return (NULL);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:364: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(new_fname,".");
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:369: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).
    strftime(new_fname+strlen(fname)+1,64,"%y%m%d%H%M%S",localtime(&Time));
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:687: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).
  fnamelen = strlen(fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:713: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(thePaths->path[i])+fnamelen>MAXPATHLENGTH)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:805: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).
  fnamelen = strlen(fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:812: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(thePaths->path[i])+fnamelen>MAXPATHLENGTH)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:884: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(path)+strlen(fname)>MAXPATHLENGTH)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:884: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 (strlen(path)+strlen(fname)>MAXPATHLENGTH)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:936: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).
  fnamelen = strlen(fname);
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:943: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(thePaths->path[i])+fnamelen>MAXPATHLENGTH)
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:958:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (path[0]!='\0' && path[strlen(path)-1]!='/')
data/dune-uggrid-2.7.0/dune/uggrid/low/fileopen.cc:960: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(path,"/");
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:158: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).
  TextLen   = strlen(text);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:202: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).
  newlen = strlen(fmt);
data/dune-uggrid-2.7.0/dune/uggrid/low/misc.cc:431: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).
  switch( s[strlen(s)-1] )
data/dune-uggrid-2.7.0/dune/uggrid/low/scan.cc:225: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(buffer,"");
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:129: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 ((len=strlen(s))==0) return(NULL);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugenv.cc:249:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name)+1>NAMESIZE)
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:103: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 ((len=strlen(name))==0) return(NULL);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:203: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 ((len=strlen(name))==0) return(NULL);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:493:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l+=strlen(path[i]->name)+1;
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:540:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(name)>NAMELEN) return(NULL);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:771:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((myVar!=NULL) && (myVar->length<=strlen(sval)))
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:779:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    myVar = (STRVAR *) MakeStructItem(theDir,lastname,theStringVarID,strlen(sval));
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:838:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(myVar->s,sval,(size_t) n);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:876:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((myVar!=NULL) && (myVar->length<=strlen(sval)))
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:884:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    myVar = (STRVAR *) MakeStructItem(theDir,lastname,theStringVarID,strlen(sval));
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1106:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n=strlen(ENVITEM_NAME(theItem));
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1143:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(buffer+bufPos,str,bufLen-bufPos-2);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1144: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).
      n=strlen(str);
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1195: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).
    buffer+=strlen(ENVITEM_NAME(StrVar)); bufLen-=strlen(ENVITEM_NAME(StrVar));
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1195: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).
    buffer+=strlen(ENVITEM_NAME(StrVar)); bufLen-=strlen(ENVITEM_NAME(StrVar));
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1201: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(str)+2<bufLen)
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1204: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(buffer, "\n");
data/dune-uggrid-2.7.0/dune/uggrid/low/ugstruct.cc:1209:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer, str, bufLen-1);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:306:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (j=0; j<MAX(MAX_VEC_COMP,strlen(DEFAULT_NAMES)); j++)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:626: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(VT_COMPNAMES(vt))!=offset[NVECTYPES]) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:650: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(ident)!=offset[NVECTYPES]) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:715: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(token)!=1) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1252: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(MT_COMPNAMES(mt))==2*offset[NMATTYPES_NORMAL])
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1313: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(MT_COMPNAMES(mt))!=2*offset[NMATTYPES_NORMAL]) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1319: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).
        for (i=0; i<strlen(MT_COMPNAMES(mt)); i+=2)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1320: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 (j=i+2; j<strlen(MT_COMPNAMES(mt)); j+=2)
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1418: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(token)!=2) {
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1666: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).
      token = strtok(partstr+strlen(IN_PARTS),LIST_SEP);
data/dune-uggrid-2.7.0/dune/uggrid/numerics/formats.cc:1769:88:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (sscanf(argv[0],expandfmt(" newformat %" NAMELENSTR "[ -~]"), formatname) != 1 || strlen(formatname) == 0) {
data/dune-uggrid-2.7.0/dune/uggrid/parallel/ddd/if/ifcreate.cc:588:1:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
strncpy(theIF[ifId].name, name, IF_NAMELEN-1);

ANALYSIS SUMMARY:

Hits = 441
Lines analyzed = 103335 in approximately 3.07 seconds (33619 lines/second)
Physical Source Lines of Code (SLOC) = 59959
Hits@level = [0] 338 [1]  73 [2] 216 [3]   1 [4] 151 [5]   0
Hits@level+ = [0+] 779 [1+] 441 [2+] 368 [3+] 152 [4+] 151 [5+]   0
Hits/KSLOC@level+ = [0+] 12.9922 [1+] 7.35503 [2+] 6.13753 [3+] 2.53507 [4+] 2.51839 [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.