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/munipack-0.5.11/artificial/artpicture.c++
Examining data/munipack-0.5.11/fits/fits.h
Examining data/munipack-0.5.11/fits/structure.cpp
Examining data/munipack-0.5.11/fits/extremove.cpp
Examining data/munipack-0.5.11/fits/header.cpp
Examining data/munipack-0.5.11/fits/cat.cpp
Examining data/munipack-0.5.11/fits/fortranio.cpp
Examining data/munipack-0.5.11/fits/dump.cpp
Examining data/munipack-0.5.11/fits/fortranio.h
Examining data/munipack-0.5.11/fits/fits.cpp
Examining data/munipack-0.5.11/fits/restore.cpp
Examining data/munipack-0.5.11/fits/fi2.cpp
Examining data/munipack-0.5.11/fits/table.cpp
Examining data/munipack-0.5.11/fits/image.cpp
Examining data/munipack-0.5.11/fits/fitshead.c
Examining data/munipack-0.5.11/lib/mfitsio.cpp
Examining data/munipack-0.5.11/include/vocatconf.h
Examining data/munipack-0.5.11/include/mprocess.h
Examining data/munipack-0.5.11/include/version.h
Examining data/munipack-0.5.11/include/votable.h
Examining data/munipack-0.5.11/include/mfitsio.h
Examining data/munipack-0.5.11/munipack/colouring.cpp
Examining data/munipack-0.5.11/munipack/fitsfn.h
Examining data/munipack-0.5.11/munipack/mprocess.cpp
Examining data/munipack-0.5.11/munipack/votable.cpp
Examining data/munipack-0.5.11/munipack/artificial.cpp
Examining data/munipack-0.5.11/munipack/cross.cpp
Examining data/munipack-0.5.11/munipack/grow_report.cpp
Examining data/munipack-0.5.11/munipack/munipack.h
Examining data/munipack-0.5.11/munipack/calibrate.cpp
Examining data/munipack-0.5.11/munipack/fits.cpp
Examining data/munipack-0.5.11/munipack/list.cpp
Examining data/munipack-0.5.11/munipack/phfotran.cpp
Examining data/munipack-0.5.11/munipack/cmd.cpp
Examining data/munipack-0.5.11/munipack/fitsfn.cpp
Examining data/munipack-0.5.11/munipack/mpipe.cpp
Examining data/munipack-0.5.11/munipack/timeseries.cpp
Examining data/munipack-0.5.11/munipack/aphot.cpp
Examining data/munipack-0.5.11/munipack/cone.cpp
Examining data/munipack-0.5.11/munipack/gphot.cpp
Examining data/munipack-0.5.11/munipack/munipack.cpp
Examining data/munipack-0.5.11/munipack/common.cpp
Examining data/munipack-0.5.11/munipack/flat.cpp
Examining data/munipack-0.5.11/munipack/astrometry.cpp
Examining data/munipack-0.5.11/munipack/dark.cpp
Examining data/munipack-0.5.11/munipack/growreport.cpp
Examining data/munipack-0.5.11/munipack/phcal.cpp
Examining data/munipack-0.5.11/munipack/bias.cpp
Examining data/munipack-0.5.11/munipack/find.cpp
Examining data/munipack-0.5.11/munipack/kombine.cpp
Examining data/munipack-0.5.11/munipack/phcorr.cpp
Examining data/munipack-0.5.11/vo/csvtable.cpp
Examining data/munipack-0.5.11/vo/txtable.cpp
Examining data/munipack-0.5.11/vo/common.cpp
Examining data/munipack-0.5.11/vo/cone.cpp
Examining data/munipack-0.5.11/vo/voclient.h
Examining data/munipack-0.5.11/vo/votab.cpp
Examining data/munipack-0.5.11/vo/fitstable.cpp
Examining data/munipack-0.5.11/vo/votable.cpp
Examining data/munipack-0.5.11/vo/svgcanvas.cpp
Examining data/munipack-0.5.11/vo/vocatconf.cpp
Examining data/munipack-0.5.11/vo/voclient.cpp
Examining data/munipack-0.5.11/wxMathPlot/samples/sample2/mp2.cpp
Examining data/munipack-0.5.11/wxMathPlot/samples/sample3/sample3.cpp
Examining data/munipack-0.5.11/wxMathPlot/samples/sample1/mp1.cpp
Examining data/munipack-0.5.11/wxMathPlot/mathplot.h
Examining data/munipack-0.5.11/wxMathPlot/mathplot.cpp
Examining data/munipack-0.5.11/xmunipack/astrolog.cpp
Examining data/munipack-0.5.11/xmunipack/color.cpp
Examining data/munipack-0.5.11/xmunipack/discanvas.cpp
Examining data/munipack-0.5.11/xmunipack/event.h
Examining data/munipack-0.5.11/xmunipack/fitshisto.cpp
Examining data/munipack-0.5.11/xmunipack/head.cpp
Examining data/munipack-0.5.11/xmunipack/log.cpp
Examining data/munipack-0.5.11/xmunipack/plot.h
Examining data/munipack-0.5.11/xmunipack/structtree.cpp
Examining data/munipack-0.5.11/xmunipack/tuneadj.cpp
Examining data/munipack-0.5.11/xmunipack/astropt.cpp
Examining data/munipack-0.5.11/xmunipack/config.cpp
Examining data/munipack-0.5.11/xmunipack/display.h
Examining data/munipack-0.5.11/xmunipack/fits.h
Examining data/munipack-0.5.11/xmunipack/fitsmeta.cpp
Examining data/munipack-0.5.11/xmunipack/icon.h
Examining data/munipack-0.5.11/xmunipack/archive.cpp
Examining data/munipack-0.5.11/xmunipack/calibrate.cpp
Examining data/munipack-0.5.11/xmunipack/collector.cpp
Examining data/munipack-0.5.11/xmunipack/dataobj.cpp
Examining data/munipack-0.5.11/xmunipack/minidisplay.cpp
Examining data/munipack-0.5.11/xmunipack/detail.cpp
Examining data/munipack-0.5.11/xmunipack/event.cpp
Examining data/munipack-0.5.11/xmunipack/resume.cpp
Examining data/munipack-0.5.11/xmunipack/enum.h
Examining data/munipack-0.5.11/xmunipack/fitsgeometry.cpp
Examining data/munipack-0.5.11/xmunipack/fitsdisplay.cpp
Examining data/munipack-0.5.11/xmunipack/grid.cpp
Examining data/munipack-0.5.11/xmunipack/gamut.cpp
Examining data/munipack-0.5.11/xmunipack/view.cpp
Examining data/munipack-0.5.11/xmunipack/averages.cpp
Examining data/munipack-0.5.11/xmunipack/astrometer.cpp
Examining data/munipack-0.5.11/xmunipack/console.cpp
Examining data/munipack-0.5.11/xmunipack/disrender.cpp
Examining data/munipack-0.5.11/xmunipack/colouring.cpp
Examining data/munipack-0.5.11/xmunipack/fitsbitmap.cpp
Examining data/munipack-0.5.11/xmunipack/listwin.cpp
Examining data/munipack-0.5.11/xmunipack/fitsstat.cpp
Examining data/munipack-0.5.11/xmunipack/dispanel.cpp
Examining data/munipack-0.5.11/xmunipack/astrometry.cpp
Examining data/munipack-0.5.11/xmunipack/plot.cpp
Examining data/munipack-0.5.11/xmunipack/splashing.cpp
Examining data/munipack-0.5.11/xmunipack/cone.cpp
Examining data/munipack-0.5.11/xmunipack/fileprop.cpp
Examining data/munipack-0.5.11/xmunipack/tune.h
Examining data/munipack-0.5.11/xmunipack/list.cpp
Examining data/munipack-0.5.11/xmunipack/display.cpp
Examining data/munipack-0.5.11/xmunipack/fitsimage.cpp
Examining data/munipack-0.5.11/xmunipack/palette.cpp
Examining data/munipack-0.5.11/xmunipack/place.cpp
Examining data/munipack-0.5.11/xmunipack/search.cpp
Examining data/munipack-0.5.11/xmunipack/thumbnail.cpp
Examining data/munipack-0.5.11/xmunipack/help.cpp
Examining data/munipack-0.5.11/xmunipack/fits.cpp
Examining data/munipack-0.5.11/xmunipack/side.cpp
Examining data/munipack-0.5.11/xmunipack/fitsiothreads.cpp
Examining data/munipack-0.5.11/xmunipack/tune.cpp
Examining data/munipack-0.5.11/xmunipack/icon.cpp
Examining data/munipack-0.5.11/xmunipack/lutus.cpp
Examining data/munipack-0.5.11/xmunipack/xmunipack.h
Examining data/munipack-0.5.11/xmunipack/browser.cpp
Examining data/munipack-0.5.11/xmunipack/preferences.cpp
Examining data/munipack-0.5.11/xmunipack/structtree.h
Examining data/munipack-0.5.11/xmunipack/corrections.cpp
Examining data/munipack-0.5.11/xmunipack/mconfig.h
Examining data/munipack-0.5.11/xmunipack/types.h
Examining data/munipack-0.5.11/xmunipack/ecdf.cpp
Examining data/munipack-0.5.11/xmunipack/rawimport.cpp
Examining data/munipack-0.5.11/xmunipack/threads.cpp
Examining data/munipack-0.5.11/xmunipack/fitscoo.cpp
Examining data/munipack-0.5.11/xmunipack/fitstone.cpp
Examining data/munipack-0.5.11/xmunipack/value.cpp
Examining data/munipack-0.5.11/xmunipack/zoom.cpp
Examining data/munipack-0.5.11/xmunipack/itt.cpp
Examining data/munipack-0.5.11/xmunipack/photometry.cpp
Examining data/munipack-0.5.11/xmunipack/selectsrc.cpp
Examining data/munipack-0.5.11/xmunipack/time.cpp
Examining data/munipack-0.5.11/xmunipack/xmunipack.cpp

FINAL RESULTS:

data/munipack-0.5.11/munipack/growreport.cpp:248:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(key,"%s%d","APER",i);
data/munipack-0.5.11/munipack/growreport.cpp:260:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(key,"%s%d","GROWCURVE",n);
data/munipack-0.5.11/munipack/growreport.cpp:264:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(key,"%s%d","RESGROW",n);
data/munipack-0.5.11/munipack/growreport.cpp:548:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  int e = system(com.c_str());
data/munipack-0.5.11/wxMathPlot/samples/sample1/mp1.cpp:316:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    temp.sprintf(wxT("axesPos = %d\n"), axesPos);
data/munipack-0.5.11/wxMathPlot/samples/sample1/mp1.cpp:356:10:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    temp.sprintf(wxT("axesPos = %d\n"), axesPos);
data/munipack-0.5.11/xmunipack/value.cpp:282: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(extname,e.ToAscii());
data/munipack-0.5.11/fits/fitshead.c:65:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((opt = getopt(argc, argv, "k:a:e:l:dc:w:hV")) != -1) {
data/munipack-0.5.11/fits/dump.cpp:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char record[FLEN_CARD];
data/munipack-0.5.11/fits/dump.cpp:172:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char c[2*b+3];
data/munipack-0.5.11/fits/fi2.cpp:21: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 *a[12];
data/munipack-0.5.11/fits/fitshead.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char record[FLEN_CARD];
data/munipack-0.5.11/fits/fortranio.cpp:64:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if( open )
data/munipack-0.5.11/fits/header.cpp:111: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 record[FLEN_CARD];
data/munipack-0.5.11/fits/header.cpp:123:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char keyname[FLEN_KEYWORD],value[FLEN_VALUE],comment[FLEN_COMMENT];
data/munipack-0.5.11/fits/header.cpp:147: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 record[FLEN_CARD];
data/munipack-0.5.11/fits/header.cpp:245: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 card[FLEN_CARD], key[FLEN_KEYWORD];
data/munipack-0.5.11/fits/restore.cpp:48: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 keyname[FLEN_CARD],cvalue[FLEN_CARD],com[FLEN_CARD];
data/munipack-0.5.11/fits/structure.cpp:43: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 extname[FLEN_CARD],comment[FLEN_CARD];
data/munipack-0.5.11/munipack/fitsfn.cpp:40: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 ftype[FLEN_FILENAME], infile[FLEN_FILENAME], outfile[FLEN_FILENAME],
data/munipack-0.5.11/munipack/growreport.cpp:173: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.
  unsigned char obr[4],g;
data/munipack-0.5.11/munipack/growreport.cpp:174: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 com[80],key[80];
data/munipack-0.5.11/munipack/growreport.cpp:444: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 avsname[10] = "/tmp/x";
data/munipack-0.5.11/munipack/growreport.cpp:445: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 dname[10] = "/tmp/d";
data/munipack-0.5.11/munipack/growreport.cpp:446: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 ddname[10] = "/tmp/b";
data/munipack-0.5.11/munipack/growreport.cpp:447: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 gsname[13] = "/tmp/g";
data/munipack-0.5.11/munipack/growreport.cpp:448: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 cname[13] = "/tmp/f";
data/munipack-0.5.11/munipack/growreport.cpp:449: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 growname[10] = "/tmp/grow";
data/munipack-0.5.11/munipack/growreport.cpp:450: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 gplname[10] = "/tmp/gpl";
data/munipack-0.5.11/munipack/growreport.cpp:451: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).
  FILE *df = fopen(avsname,"w");
data/munipack-0.5.11/munipack/growreport.cpp:452: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).
  FILE *dp = fopen(dname,"w");
data/munipack-0.5.11/munipack/growreport.cpp:453:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *ddp = fopen(ddname,"w");
data/munipack-0.5.11/munipack/growreport.cpp:454: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).
  FILE *dg = fopen(gsname,"w");
data/munipack-0.5.11/munipack/growreport.cpp:455: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).
  FILE *dc = fopen(cname,"w");
data/munipack-0.5.11/munipack/growreport.cpp:456: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).
  FILE *ds = fopen(growname,"w");
data/munipack-0.5.11/munipack/growreport.cpp:464: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 avsname[10] = "avsXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:465: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 dname[11] = "dataXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:466: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 ddname[10] = "datXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:467: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 gsname[13] = "gstarsXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:468: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 cname[13] = "funXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:469: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 growname[11] = "growXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:470: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 gplname[10] = "gplXXXXXX";
data/munipack-0.5.11/munipack/growreport.cpp:471:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int fd = mkstemp(avsname);
data/munipack-0.5.11/munipack/growreport.cpp:472:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int gd = mkstemp(dname);
data/munipack-0.5.11/munipack/growreport.cpp:473:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int dd = mkstemp(ddname);
data/munipack-0.5.11/munipack/growreport.cpp:474:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int gs = mkstemp(gsname);
data/munipack-0.5.11/munipack/growreport.cpp:475:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int gc = mkstemp(cname);
data/munipack-0.5.11/munipack/growreport.cpp:476:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int gf = mkstemp(growname);
data/munipack-0.5.11/vo/vocatconf.cpp:328: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 extname[FLEN_CARD],comment[FLEN_CARD];
data/munipack-0.5.11/xmunipack/astrometry.cpp:216: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.
  const char *cp[4] = { "W", "N", "E", "S" };
data/munipack-0.5.11/xmunipack/color.cpp:417: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(X,d[0],nbytes);
data/munipack-0.5.11/xmunipack/color.cpp:418: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(Y,d[1],nbytes);
data/munipack-0.5.11/xmunipack/color.cpp:419: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(Z,d[2],nbytes);
data/munipack-0.5.11/xmunipack/color.cpp:426: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(X,d[0],nbytes);
data/munipack-0.5.11/xmunipack/color.cpp:427: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(Y,d[1],nbytes);
data/munipack-0.5.11/xmunipack/color.cpp:428: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(Z,d[2],nbytes);
data/munipack-0.5.11/xmunipack/cone.cpp:177:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  if( ! tmpfile.IsEmpty() && wxFileExists(tmpfile) )
data/munipack-0.5.11/xmunipack/cone.cpp:177:43:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  if( ! tmpfile.IsEmpty() && wxFileExists(tmpfile) )
data/munipack-0.5.11/xmunipack/cone.cpp:178:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    wxRemoveFile(tmpfile);
data/munipack-0.5.11/xmunipack/cone.cpp:240:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  wxRemoveFile(tmpfile);
data/munipack-0.5.11/xmunipack/dataobj.cpp:81: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(d,data,len);
data/munipack-0.5.11/xmunipack/dataobj.cpp:90: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,d,size);
data/munipack-0.5.11/xmunipack/fits.cpp:90: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 keyname[FLEN_CARD],cval[FLEN_CARD],com[FLEN_CARD];
data/munipack-0.5.11/xmunipack/fits.cpp:729: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(newdata->itable,olddata->itable,nr*sizeof(int));
data/munipack-0.5.11/xmunipack/fits.cpp:733: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(newdata->ltable,olddata->ltable,nr*sizeof(long));
data/munipack-0.5.11/xmunipack/fits.cpp:737: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(newdata->otable,olddata->otable,nr*sizeof(bool));
data/munipack-0.5.11/xmunipack/fits.cpp:741: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(newdata->btable,olddata->btable,nr*sizeof(char));
data/munipack-0.5.11/xmunipack/fits.cpp:745: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(newdata->stable,olddata->stable,nr*sizeof(short));
data/munipack-0.5.11/xmunipack/fits.cpp:749: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(newdata->ftable,olddata->ftable,nr*sizeof(float));
data/munipack-0.5.11/xmunipack/fits.cpp:753: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(newdata->dtable,olddata->dtable,nr*sizeof(double));
data/munipack-0.5.11/xmunipack/fits.cpp:1259: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 h[FLEN_CARD];
data/munipack-0.5.11/xmunipack/fits.cpp:1328:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char nullval[width];
data/munipack-0.5.11/xmunipack/fits.cpp:1414: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 emsg[FLEN_ERRMSG];
data/munipack-0.5.11/xmunipack/fits.cpp:1418: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[FLEN_STATUS];
data/munipack-0.5.11/xmunipack/fits.cpp:1728: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 h[FLEN_CARD];
data/munipack-0.5.11/xmunipack/fits.cpp:1786: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 keyname[FLEN_KEYWORD],value[FLEN_VALUE],com[FLEN_COMMENT];
data/munipack-0.5.11/xmunipack/fitsbitmap.cpp:145: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(rgb,data->rgb,npix);
data/munipack-0.5.11/xmunipack/fitsbitmap.cpp:159: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(rgb+i*npix,data->rgb+(data->height - i - 1)*npix,npix);
data/munipack-0.5.11/xmunipack/fitsgeometry.cpp:278: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(a+j*w,array+(yoff+j)*data->naxes[0]+xoff,bytes);
data/munipack-0.5.11/xmunipack/fitsgeometry.cpp:326:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(array+(yoff+j)*data->naxes[0]+xoff,a+j*w,bytes);
data/munipack-0.5.11/xmunipack/value.cpp:258: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 extname[FLEN_CARD],comment[FLEN_CARD];
data/munipack-0.5.11/xmunipack/xmunipack.h:476:37:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  wxString GetPath() const { return tmpfile; }
data/munipack-0.5.11/xmunipack/xmunipack.h:489:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  wxString tmpfile;
data/munipack-0.5.11/fits/dump.cpp:188:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	      strncpy(c,cell,b);
data/munipack-0.5.11/fits/fitshead.c:134:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(inclist[i],k,nlen);
data/munipack-0.5.11/fits/fitshead.c:227:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      for(i = 0; i < strlen(record); i++)
data/munipack-0.5.11/fits/fortranio.cpp:47:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *b = new char[strlen(a)+1];
data/munipack-0.5.11/fits/header.cpp:47: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(a) > 0 ) {
data/munipack-0.5.11/fits/header.cpp:50:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for(char *l = a + strlen(a)-1; l != a; l--) {
data/munipack-0.5.11/fits/header.cpp:58:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *l = a + strlen(a);
data/munipack-0.5.11/xmunipack/fits.cpp:1329:4:  [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(nullval," ");

ANALYSIS SUMMARY:

Hits = 91
Lines analyzed = 47517 in approximately 1.07 seconds (44590 lines/second)
Physical Source Lines of Code (SLOC) = 29641
Hits@level = [0]  30 [1]   8 [2]  75 [3]   1 [4]   7 [5]   0
Hits@level+ = [0+] 121 [1+]  91 [2+]  83 [3+]   8 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 4.08218 [1+] 3.07007 [2+] 2.80018 [3+] 0.269896 [4+] 0.236159 [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.