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/pfstools-2.1.0/src/pfsglview/pfsglview.cpp
Examining data/pfstools-2.1.0/src/pfsglview/glenv.h
Examining data/pfstools-2.1.0/src/pfsglview/histogram.cpp
Examining data/pfstools-2.1.0/src/pfsglview/histogram.h
Examining data/pfstools-2.1.0/src/pfsglview/m_histogram.cpp
Examining data/pfstools-2.1.0/src/pfsglview/m_histogram.h
Examining data/pfstools-2.1.0/src/pfsglview/m_on_screen_display.cpp
Examining data/pfstools-2.1.0/src/pfsglview/m_on_screen_display.h
Examining data/pfstools-2.1.0/src/pfsglview/m_status.cpp
Examining data/pfstools-2.1.0/src/pfsglview/m_status.h
Examining data/pfstools-2.1.0/src/pfsglview/module.cpp
Examining data/pfstools-2.1.0/src/pfsglview/module.h
Examining data/pfstools-2.1.0/src/pfsglview/picture_io.h
Examining data/pfstools-2.1.0/src/pfsglview/winstat.cpp
Examining data/pfstools-2.1.0/src/pfsglview/winstat.h
Examining data/pfstools-2.1.0/src/pfsglview/picture_io.cpp
Examining data/pfstools-2.1.0/src/getopt/getopt.h
Examining data/pfstools-2.1.0/src/getopt/getopt.c
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/display_adaptive_tmo.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/display_adaptive_tmo.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/display_function.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/display_size.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/cqp/initial_point.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/cqp/cqpminimizer.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/cqp/gsl_cqp.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/cqp/mg_pdip.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/cqp/initial_point.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/display_function.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk08/display_size.cpp
Examining data/pfstools-2.1.0/src/tmo/pattanaik00/pfstmo_pattanaik00.cpp
Examining data/pfstools-2.1.0/src/tmo/pattanaik00/tmo_pattanaik00.h
Examining data/pfstools-2.1.0/src/tmo/pattanaik00/tmo_pattanaik00.cpp
Examining data/pfstools-2.1.0/src/tmo/pfstmo/pfstmo.h
Examining data/pfstools-2.1.0/src/tmo/ferradans11/Imagen.cpp
Examining data/pfstools-2.1.0/src/tmo/ferradans11/pfstmo_ferradans11.cpp
Examining data/pfstools-2.1.0/src/tmo/ferradans11/Imagen.h
Examining data/pfstools-2.1.0/src/tmo/ferradans11/tmo_ferradans11.cpp
Examining data/pfstools-2.1.0/src/tmo/drago03/tmo_drago03.cpp
Examining data/pfstools-2.1.0/src/tmo/drago03/tmo_drago03.h
Examining data/pfstools-2.1.0/src/tmo/drago03/pfstmo_drago03.cpp
Examining data/pfstools-2.1.0/src/tmo/reinhard05/tmo_reinhard05.h
Examining data/pfstools-2.1.0/src/tmo/reinhard05/pfstmo_reinhard05.cpp
Examining data/pfstools-2.1.0/src/tmo/reinhard05/tmo_reinhard05.cpp
Examining data/pfstools-2.1.0/src/tmo/durand02/fastbilateral.h
Examining data/pfstools-2.1.0/src/tmo/durand02/fastbilateral.cpp
Examining data/pfstools-2.1.0/src/tmo/durand02/bilateral.h
Examining data/pfstools-2.1.0/src/tmo/durand02/bilateral.cpp
Examining data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp
Examining data/pfstools-2.1.0/src/tmo/durand02/tmo_durand02.h
Examining data/pfstools-2.1.0/src/tmo/durand02/tmo_durand02.cpp
Examining data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp
Examining data/pfstools-2.1.0/src/tmo/mai11/compression_tmo.cpp
Examining data/pfstools-2.1.0/src/tmo/mai11/compression_tmo.h
Examining data/pfstools-2.1.0/src/tmo/fattal02/tmo_fattal02.h
Examining data/pfstools-2.1.0/src/tmo/fattal02/pfstmo_fattal02.cpp
Examining data/pfstools-2.1.0/src/tmo/fattal02/tmo_fattal02.cpp
Examining data/pfstools-2.1.0/src/tmo/fattal02/pde_fft.cpp
Examining data/pfstools-2.1.0/src/tmo/fattal02/pde.cpp
Examining data/pfstools-2.1.0/src/tmo/fattal02/pde.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.h
Examining data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.cpp
Examining data/pfstools-2.1.0/src/tmo/mantiuk06/pfstmo_mantiuk06.cpp
Examining data/pfstools-2.1.0/src/tmo/reinhard02/tmo_reinhard02.cpp
Examining data/pfstools-2.1.0/src/tmo/reinhard02/tmo_reinhard02.h
Examining data/pfstools-2.1.0/src/tmo/reinhard02/pfstmo_reinhard02.cpp
Examining data/pfstools-2.1.0/src/tmo/reinhard02/approx.cpp
Examining data/pfstools-2.1.0/src/pfsview/histogram.h
Examining data/pfstools-2.1.0/src/pfsview/pfsview_widget.cpp
Examining data/pfstools-2.1.0/src/pfsview/main.cpp
Examining data/pfstools-2.1.0/src/pfsview/histogram.cpp
Examining data/pfstools-2.1.0/src/pfsview/luminancerange_widget.h
Examining data/pfstools-2.1.0/src/pfsview/resources.cpp
Examining data/pfstools-2.1.0/src/pfsview/luminancerange_widget.cpp
Examining data/pfstools-2.1.0/src/pfsview/main.h
Examining data/pfstools-2.1.0/src/pfsview/pfsview_widget.h
Examining data/pfstools-2.1.0/src/fileformat/rgbeio.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinppm.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsoutimgmagick.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinexr.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinrgbe.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsoutrgbe.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp
Examining data/pfstools-2.1.0/src/fileformat/exrio.h
Examining data/pfstools-2.1.0/src/fileformat/pfsingdal.cpp
Examining data/pfstools-2.1.0/src/fileformat/hdrtiffio.h
Examining data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinjpeghdr.cpp
Examining data/pfstools-2.1.0/src/fileformat/rgbeio.h
Examining data/pfstools-2.1.0/src/fileformat/pfsoutpfm.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsoutppm.cpp
Examining data/pfstools-2.1.0/src/fileformat/ppmio.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsouttiff.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinimgmagick.cpp
Examining data/pfstools-2.1.0/src/fileformat/exrio.cpp
Examining data/pfstools-2.1.0/src/fileformat/ppmio.h
Examining data/pfstools-2.1.0/src/fileformat/pfsintiff.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp
Examining data/pfstools-2.1.0/src/fileformat/pfsoutjpeghdr.cpp
Examining data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp
Examining data/pfstools-2.1.0/src/camera/responses.h
Examining data/pfstools-2.1.0/src/camera/robertson02.cpp
Examining data/pfstools-2.1.0/src/camera/robertson02.h
Examining data/pfstools-2.1.0/src/camera/mitsunaga99.cpp
Examining data/pfstools-2.1.0/src/camera/mitsunaga99.h
Examining data/pfstools-2.1.0/src/camera/mitsunaga99_numerical.cpp
Examining data/pfstools-2.1.0/src/camera/mitsunaga99_numerical.h
Examining data/pfstools-2.1.0/src/camera/nrutil.cpp
Examining data/pfstools-2.1.0/src/camera/nrutil.h
Examining data/pfstools-2.1.0/src/camera/pfsalign.cpp
Examining data/pfstools-2.1.0/src/camera/pfsmergehdr.cpp
Examining data/pfstools-2.1.0/src/camera/responses.cpp
Examining data/pfstools-2.1.0/src/pfs/array2d.h
Examining data/pfstools-2.1.0/src/pfs/colorspace.cpp
Examining data/pfstools-2.1.0/src/pfs/pfs.h
Examining data/pfstools-2.1.0/src/pfs/pfs.cpp
Examining data/pfstools-2.1.0/src/pfs/pfsutils.cpp
Examining data/pfstools-2.1.0/src/hdrhtml/hdrhtml.h
Examining data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp
Examining data/pfstools-2.1.0/src/hdrhtml/pfsouthdrhtml.cpp
Examining data/pfstools-2.1.0/src/matlab/mex_utils.cpp
Examining data/pfstools-2.1.0/src/matlab/mex_utils.h
Examining data/pfstools-2.1.0/src/matlab/pfs_read_rgbe.cpp
Examining data/pfstools-2.1.0/src/matlab/pfsclose.cpp
Examining data/pfstools-2.1.0/src/matlab/pfsget.cpp
Examining data/pfstools-2.1.0/src/matlab/compatibility.h
Examining data/pfstools-2.1.0/src/matlab/pfsopen.cpp
Examining data/pfstools-2.1.0/src/matlab/pfsput.cpp
Examining data/pfstools-2.1.0/src/matlab/pfspclose.cpp
Examining data/pfstools-2.1.0/src/matlab/pfspopen.cpp
Examining data/pfstools-2.1.0/src/matlab/pfs_transform_colorspace.cpp
Examining data/pfstools-2.1.0/src/octave/pfsopen.cpp
Examining data/pfstools-2.1.0/src/octave/pfsclose.cpp
Examining data/pfstools-2.1.0/src/octave/octave_util.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfsopen_help.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfsread_help.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfsget_help.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfsput_help.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfsclose_help.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfswrite_help.h
Examining data/pfstools-2.1.0/src/octave/help_files/pfstransform_colorspace_help.h
Examining data/pfstools-2.1.0/src/octave/pfsget.cpp
Examining data/pfstools-2.1.0/src/octave/pfsput.cpp
Examining data/pfstools-2.1.0/src/octave/pfsread.cpp
Examining data/pfstools-2.1.0/src/octave/pfstransform_colorspace.cpp
Examining data/pfstools-2.1.0/src/octave/pfswrite.cpp
Examining data/pfstools-2.1.0/src/filter/pfscat.cpp
Examining data/pfstools-2.1.0/src/filter/pfscolortransform.cpp
Examining data/pfstools-2.1.0/src/filter/pfspad.cpp
Examining data/pfstools-2.1.0/src/filter/pfsrotate.cpp
Examining data/pfstools-2.1.0/src/filter/pfsabsolute.cpp
Examining data/pfstools-2.1.0/src/filter/pfspanoramic.cpp
Examining data/pfstools-2.1.0/src/filter/pfstag.cpp
Examining data/pfstools-2.1.0/src/filter/pfscut.cpp
Examining data/pfstools-2.1.0/src/filter/pfsdisplayfunction.cpp
Examining data/pfstools-2.1.0/src/filter/pfsretime.cpp
Examining data/pfstools-2.1.0/src/filter/display_function.h
Examining data/pfstools-2.1.0/src/filter/pfsextractchannels.cpp
Examining data/pfstools-2.1.0/src/filter/pfssize.cpp
Examining data/pfstools-2.1.0/src/filter/display_function.cpp
Examining data/pfstools-2.1.0/src/filter/pfsclamp.cpp
Examining data/pfstools-2.1.0/src/filter/pfsflip.cpp
Examining data/pfstools-2.1.0/src/filter/pfsgamma.cpp

FINAL RESULTS:

data/pfstools-2.1.0/src/camera/pfsalign.cpp:67:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " [-r index|--reference index] [-c (min|max)|--crop (min|max)] [-d|--display-matches] [-f|--fail-no-match] -v -h\n"
data/pfstools-2.1.0/src/camera/pfsalign.cpp:756:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:80:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME ": \n"
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:949:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/camera/pfsmergehdr.cpp:48:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME ": \n"
data/pfstools-2.1.0/src/camera/responses.cpp:59:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(fn, filename, counter);
data/pfstools-2.1.0/src/fileformat/exrio.cpp:101: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(fileName, filename);
data/pfstools-2.1.0/src/fileformat/pfsinexr.cpp:57:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--keep-rgb] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/fileformat/pfsinexr.cpp:228:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf( stderr, PROG_NAME ": Warning! Can not set tag for '%s' channel because it does not exist\n", channelName.c_str() );
data/pfstools-2.1.0/src/fileformat/pfsinexr.cpp:275:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsinexr.cpp:280:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", exc.what() );
data/pfstools-2.1.0/src/fileformat/pfsinjpeghdr.cpp:56:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--verbose] [--help]\n"
data/pfstools-2.1.0/src/fileformat/pfsinjpeghdr.cpp:177:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:175:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--verbose] [--help]\n"
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:264:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsinrgbe.cpp:145:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:574:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp:60:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--compression <method>] [--float32] [--clamp-halfmax] [--linear] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp:168:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf( stderr, PROG_NAME ": Color channel precision: %s\n", float32 ? "32-bit float" : "16-bit float" );
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp:360:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf( stderr, PROG_NAME " warning: Some pixels exceed maximum value that can be stored in an OpenEXR file (maximum value of HALF-16 float). The values are scaled and the \"WhiteLuminance\" tag is added to preserve those values.\n" );
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp:415:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp: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( stderr, PROG_NAME " error: %s\n", exc.what() );
data/pfstools-2.1.0/src/fileformat/pfsoutjpeghdr.cpp:54:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--quality] [--correct] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/fileformat/pfsoutjpeghdr.cpp:272:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsoutpfm.cpp:62:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--verbose] [--help]\n"
data/pfstools-2.1.0/src/fileformat/pfsoutpfm.cpp:73: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( fh, "PF" PFMEOL "%d %d" PFMEOL "%d" PFMEOL, width, height, scale );
data/pfstools-2.1.0/src/fileformat/pfsoutpfm.cpp:99: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( fh, "Pf" PFMEOL "%d %d" PFMEOL "%d" PFMEOL, width, height, scale );
data/pfstools-2.1.0/src/fileformat/pfsoutpfm.cpp:217:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:75: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, currentPattern->pattern);
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:81:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(metaData, "%dx%d_%dfps_%db_%s_%s", width, height, fps, bitdepth, colorSpace, chromaFormat);
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:84:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(metaData, "%dx%d_%db_%s_%s", width, height, bitdepth, colorSpace, chromaFormat);
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:87:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(fileName,currentPattern->pattern, metaData);
data/pfstools-2.1.0/src/filter/pfsabsolute.cpp:60:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " <dest Y> [<src Y>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsabsolute.cpp:160:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfscat.cpp:71:1:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
fprintf( stderr, PROG_NAME ": \n"
data/pfstools-2.1.0/src/filter/pfscat.cpp:422:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, PROG_NAME " error: %s\n", ex.getMessage());
data/pfstools-2.1.0/src/filter/pfsclamp.cpp:87:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--min <val>] [--max <val>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsclamp.cpp:214:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfscut.cpp:63:1:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
fprintf( stderr, PROG_NAME ": \n" 
data/pfstools-2.1.0/src/filter/pfscut.cpp:271:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, PROG_NAME " error: %s\n", ex.getMessage());
data/pfstools-2.1.0/src/filter/pfsdisplayfunction.cpp:51:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--gamma <val> | --inverse-gamma <val>] [--mul <val>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsdisplayfunction.cpp:188:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfsextractchannels.cpp:45:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " channel_name [Channel_name...] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsextractchannels.cpp:52:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf( stderr, PROG_NAME " error: %s\n", string );
data/pfstools-2.1.0/src/filter/pfsextractchannels.cpp:106:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf( stderr, PROG_NAME " error: Channel %s does not exist\n", *it );
data/pfstools-2.1.0/src/filter/pfsextractchannels.cpp:133:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfsflip.cpp:48:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [-h] [-v] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsflip.cpp:150:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfsgamma.cpp:50:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--gamma <val> | --inverse-gamma <val>] [--mul <val>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsgamma.cpp:178:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfspad.cpp:70:1:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
fprintf(stderr, PROG_NAME ":\n"
data/pfstools-2.1.0/src/filter/pfspad.cpp:311:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, PROG_NAME " error: %s\n", ex.getMessage());
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:52:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " error: %s\n", string );
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:354:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf( stderr, PROG_NAME " error: angular projection: angle must be in (0,360] degrees range.\n" );
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:360:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROG_NAME " error: angular projection: unknown option: %s\n", opts );
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:659:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " <source projection>+<target projection> [--width <val>] [--height <val>] [--oversample <val>] [--interpolate] [--xrotate <angle>] [--yrotate <angle>] [--zrotate <angle>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:736:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROG_NAME " error: unknown parameter: %s\n", argv[optind]);
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:754:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: unknown projection. Possible values:\n" );
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:764:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME ": reprojecting %s to %s", transformInfo.srcProjection->getName(), transformInfo.dstProjection->getName() );
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:942:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfsretime.cpp:51:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " [--in-fps <val>] [--out-fps <val>] [--speedup <val>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsretime.cpp:166:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfsrotate.cpp:48:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [-r] [--help]\n"
data/pfstools-2.1.0/src/filter/pfsrotate.cpp:137:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfssize.cpp:129:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--x <pixels>] [--y <pixels>] [--ratio <ratio>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfssize.cpp:136:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf( stderr, PROG_NAME " error: %s\n", string );
data/pfstools-2.1.0/src/filter/pfssize.cpp:430:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/filter/pfstag.cpp:50:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [--set \"[channel:]name=value\"] [--remove \"[channel:]name]\" [--verbose] [--help]\n"
data/pfstools-2.1.0/src/filter/pfstag.cpp:180:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/hdrhtml/pfsouthdrhtml.cpp:53:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " [<html_page_name>] [--quality <1-5>] [--image-dir <directory_name>] [--page-template <template_file>] [--image-template <template_file>] [--object-output <file_name.js>] [--html-output <file_name.html>] [--verbose] [--help]\n"
data/pfstools-2.1.0/src/hdrhtml/pfsouthdrhtml.cpp:223:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/matlab/compatibility.h:35:9:  [4] (shell) popen:
  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.
#define popen _popen
data/pfstools-2.1.0/src/matlab/mex_utils.cpp:26:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy( buf, str );
data/pfstools-2.1.0/src/matlab/pfs_read_rgbe.cpp:80:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( error_message, "%s: %s", SCRIPT_NAME, ex.getMessage() );
data/pfstools-2.1.0/src/matlab/pfs_transform_colorspace.cpp:110:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( error_message, "%s: %s", SCRIPT_NAME, ex.getMessage() );
data/pfstools-2.1.0/src/matlab/pfsget.cpp:170:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( error_message, "%s: %s", SCRIPT_NAME, ex.getMessage() );
data/pfstools-2.1.0/src/matlab/pfspopen.cpp:24:14:  [4] (shell) popen:
  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.
  FILE *in = popen( cmd_line, mode );
data/pfstools-2.1.0/src/matlab/pfsput.cpp:196:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( error_message, "%s: %s", SCRIPT_NAME, ex.getMessage() );
data/pfstools-2.1.0/src/pfs/pfs.cpp:512:15:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  readItems = fscanf( in, "%d" PFSEOL, &tagCount );
data/pfstools-2.1.0/src/pfs/pfs.cpp:539: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( out, "%d" PFSEOL, tags->getSize() );
data/pfstools-2.1.0/src/pfs/pfs.cpp:542: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( out, PFSEOL );
data/pfstools-2.1.0/src/pfs/pfs.cpp:573:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    read = fscanf( inputStream, "%d %d" PFSEOL, &width, &height );
data/pfstools-2.1.0/src/pfs/pfs.cpp:576:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    read = fscanf( inputStream, "%d" PFSEOL, &channelCount );
data/pfstools-2.1.0/src/pfs/pfs.cpp:650: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( outputStream, "%d %d" PFSEOL, (int)frame->getWidth(), (int)frame->getHeight() );
data/pfstools-2.1.0/src/pfs/pfs.cpp:651: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( outputStream, "%d" PFSEOL, (int)frameImpl->channel.size() );
data/pfstools-2.1.0/src/pfs/pfs.cpp:657:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf( outputStream, "%s" PFSEOL, it->second->getName() );
data/pfstools-2.1.0/src/pfs/pfs.h:599:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy( msg, message );
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:216:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf( fileName, currentPattern->pattern, currentPattern->currentFrame );
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:218:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy( fileName, currentPattern->pattern );
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:237:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf( msg, "Can not open file '%s'", fileName );
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:77:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buffer, "  %s  %s   %s", mappingMode, channel, navigationMode);
data/pfstools-2.1.0/src/pfsglview/pfsglview.cpp:1688:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(title, "PFS GLview v.1.2     %s   %dx%d", bitmap->getCurrentFileName(), bitmap->getWidth(), bitmap->getHeight());
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:74:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( ss, "  %s  %s   %s", mappingMode, channel, szoom);
data/pfstools-2.1.0/src/pfsview/main.cpp:453:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( pointerValueStr, "%s=%07.4g %s=%07.4g %s=%07.4g",
data/pfstools-2.1.0/src/pfsview/main.cpp:463:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( pointerValueStr, "%s=%07.4g", (const char*)name.toLatin1(), pv.value[0] );
data/pfstools-2.1.0/src/pfsview/main.cpp:760:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf( stderr, PROGNAME " error: %s\n", string );
data/pfstools-2.1.0/src/pfsview/main.cpp:796:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROGNAME " error: not recognized parameter '%s'\n", argv[i] );
data/pfstools-2.1.0/src/tmo/drago03/pfstmo_drago03.cpp:55:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_VERSION ") : \n"
data/pfstools-2.1.0/src/tmo/drago03/pfstmo_drago03.cpp:151:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:73:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:210:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/fattal02/pfstmo_fattal02.cpp:59:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/fattal02/pfstmo_fattal02.cpp:255:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/ferradans11/pfstmo_ferradans11.cpp:52:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/ferradans11/pfstmo_ferradans11.cpp:157:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:82:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:206:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/mantiuk06/pfstmo_mantiuk06.cpp:62:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/mantiuk06/pfstmo_mantiuk06.cpp:223:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:82:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:292:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf( stderr, PROG_NAME ": warning - wrong WHITE_Y in the input image" );        
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:306:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr, PROG_NAME " warning: input image should be in linear (not gamma corrected) luminance factor units. Use '--linear' option with pfsin* commands.\n" );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:404:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/pattanaik00/pfstmo_pattanaik00.cpp:59:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/pattanaik00/pfstmo_pattanaik00.cpp:229:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/reinhard02/pfstmo_reinhard02.cpp:59:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME " (" PACKAGE_STRING ") : \n"
data/pfstools-2.1.0/src/tmo/reinhard02/pfstmo_reinhard02.cpp:199:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/tmo/reinhard05/pfstmo_reinhard05.cpp:59:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( stderr, PROG_NAME  " (" PACKAGE_STRING "): \n"
data/pfstools-2.1.0/src/tmo/reinhard05/pfstmo_reinhard05.cpp:161:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, PROG_NAME " error: %s\n", ex.getMessage() );
data/pfstools-2.1.0/src/camera/pfsalign.cpp:472:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        int c = getopt_long (argc, argv, "r:c:s:fhvd", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:145:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while( ( c =  getopt_long( argc, 
data/pfstools-2.1.0/src/camera/pfsmergehdr.cpp:70:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hv", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinexr.cpp:97:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsingdal.cpp:86:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinimgmagick.cpp:74:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinjpeghdr.cpp:87:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:200:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinppm.cpp:78:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinrgbe.cpp:78:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsintiff.cpp:76:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:366:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp:110:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutimgmagick.cpp:84:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutjpeghdr.cpp:166:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutpfm.cpp:135:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutppm.cpp:77:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutrgbe.cpp:78:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsouttiff.cpp:75:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:67:49:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    const char *optstring, const struct option *getopt_long, unsigned int width, unsigned int height, unsigned int bitdepth, const char * colorSpace, const char * chromaFormat, int fps) : 
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:68:92:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    pfs::FrameFileIteratorImpl(argc, argv, fopenMode, fileNamePrefix, stdinout, optstring, getopt_long), bitdepth(bitdepth), colorSpace(colorSpace), width(width), height(height), chromaFormat(chromaFormat), fps(fps) 
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:270:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsabsolute.cpp:81:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfscat.cpp:155:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c=getopt_long(argc, argv,optString, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsclamp.cpp:115:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvpz", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfscolortransform.cpp:211:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "r:x:htv", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfscut.cpp:160:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c=getopt_long(argc, argv, "hl:r:t:b:W:H:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsdisplayfunction.cpp:78:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvpl", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsextractchannels.cpp:79:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "h", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsflip.cpp:68:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hv", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsgamma.cpp:75:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "m:g:i:hv", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfspad.cpp:173:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c=getopt_long(argc, argv, "hl:r:t:b:W:H:R:G:B:Y:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:689:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long( argc, argv, "w:h:o:ix:y:z:", cmdLineOptions, &optionIndex );
data/pfstools-2.1.0/src/filter/pfsretime.cpp:76:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        int c = getopt_long (argc, argv, "i:o:s:hv", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfsrotate.cpp:68:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "r", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfssize.cpp:195:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "x:y:r:f:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/filter/pfstag.cpp:109:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "m:g:s:r:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/getopt/getopt.c:115:45:  [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.
	d->__posixly_correct = posixly_correct | !!getenv("POSIXLY_CORRECT");
data/pfstools-2.1.0/src/getopt/getopt.h:123:11:  [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.
		#define getopt getopt_w
data/pfstools-2.1.0/src/getopt/getopt.h:124:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		#define getopt_long getopt_long_w
data/pfstools-2.1.0/src/getopt/getopt.h:129:11:  [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.
		#define getopt getopt_a
data/pfstools-2.1.0/src/getopt/getopt.h:130:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		#define getopt_long getopt_long_a
data/pfstools-2.1.0/src/hdrhtml/pfsouthdrhtml.cpp:85:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:118:49:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    const char *optstring, const struct option *getopt_long )
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:156:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        if( getopt_long != NULL && !strncmp( argv[i], "--", 2 ) ) { 
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:158:38:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
          const struct option *opt = getopt_long;
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:260:47:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  const char *optstring, const struct option *getopt_long )
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:263:42:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    fileNamePrefix, stdinout, optstring, getopt_long );
data/pfstools-2.1.0/src/pfsglview/pfsglview.cpp:1707:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c = getopt_long (argc, argv, "hv", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/drago03/pfstmo_drago03.cpp:79:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "vhb:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:110:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvs:r:c:qg", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/fattal02/pde_fft.cpp:352:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    (*Uexact)(i)= (double) random() / (RAND_MAX+1.0);
data/pfstools-2.1.0/src/tmo/fattal02/pde_fft.cpp:390:28:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    (*Uexact)(i)= (double) random() / (RAND_MAX+1.0);
data/pfstools-2.1.0/src/tmo/fattal02/pfstmo_fattal02.cpp:109:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvma:b:g:s:n:d:w:k:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/ferradans11/pfstmo_ferradans11.cpp:78:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, optstring, cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:122:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "vhe:c:y:t:o:qm:f:a:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/mantiuk06/pfstmo_mantiuk06.cpp:112:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "vhf:s:e:q", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:152:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "vhe:c:y:t:o:qm:f:a:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/pattanaik00/pfstmo_pattanaik00.cpp:96:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvtf:lm:c:r:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/reinhard02/pfstmo_reinhard02.cpp:96:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvsk:p:r:l:u:t", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/tmo/reinhard05/pfstmo_reinhard05.cpp:85:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int c = getopt_long (argc, argv, "hvb:c:l:", cmdLineOptions, &optionIndex);
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:225:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  responseFile    = fopen(optarg, "r");
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:232: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).
	  responseSaveFile = fopen(optarg,"w");
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:246:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  opt_bpp = atoi(optarg);
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:260:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  opt_maxresponse = atoi(optarg);
data/pfstools-2.1.0/src/camera/pfshdrcalibrate.cpp:266:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  opt_minresponse = atoi(optarg);
data/pfstools-2.1.0/src/camera/responses.cpp:48: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* fp = fopen(filename, "w");
data/pfstools-2.1.0/src/camera/responses.cpp:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fn[2048];
data/pfstools-2.1.0/src/camera/responses.cpp:231:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[1024];
data/pfstools-2.1.0/src/camera/responses.cpp: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 line[1024];
data/pfstools-2.1.0/src/fileformat/exrio.h:62: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[1024];
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:96: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(format_string,"linear LogLuv XYZ");
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:126:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(format_string,"linear 8bit RGB");
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:133:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(format_string,"linear 16bit RGB");
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:140:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(format_string,"linear 32bit float RGB");
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:160: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(format_string,"linear 16bit");
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:166: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(format_string,"unknown");
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:288:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char head[4];
data/pfstools-2.1.0/src/fileformat/hdrtiffio.cpp:452: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 ifd[12];
data/pfstools-2.1.0/src/fileformat/hdrtiffio.h:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char format_string[255];       /// for verbose output 
data/pfstools-2.1.0/src/fileformat/pfsingdal.cpp:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char channel_name[32];
data/pfstools-2.1.0/src/fileformat/pfsingdal.cpp:194:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( C[band - 1]->getRawData() + y * nBlockXSize, pafScanline, nBlockXSize * sizeof(float) );
data/pfstools-2.1.0/src/fileformat/pfsinimgmagick.cpp:176: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 strbuf[3];
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:84: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 headerID[2];
data/pfstools-2.1.0/src/fileformat/pfsinppm.cpp:154: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 strbuf[3];
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:44:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char charsToRemove[7] = {'b', 'i', 't', 's', 'f', 'p', 's'};
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:91:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return std::atoi(i.data());
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:429: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).
    fh = fopen (filename, "rb");
data/pfstools-2.1.0/src/fileformat/pfsoutexr.cpp:308:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			static const char *rgb_strings[3] = { "R", "G", "B" };			
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:78: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 metaData[100]; //reasonably safe?
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:95: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).
      fh = fopen( fileName, fopenMode );
data/pfstools-2.1.0/src/fileformat/pfsoutyuv.cpp:368:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    fps = atoi(fpsTag);
data/pfstools-2.1.0/src/fileformat/rgbeio.cpp: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 head[255];
data/pfstools-2.1.0/src/fileformat/rgbeio.cpp:201: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 xbuf[4], ybuf[4];
data/pfstools-2.1.0/src/fileformat/rgbeio.cpp:430:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char header[4];
data/pfstools-2.1.0/src/filter/display_function.cpp:106: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 *fh = fopen( file_name, "r" );
data/pfstools-2.1.0/src/filter/display_function.cpp:114:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[max_line];
data/pfstools-2.1.0/src/filter/pfscolortransform.cpp:86:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(fn, "r");
data/pfstools-2.1.0/src/filter/pfscolortransform.cpp:93:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[BUFSIZ], *ptr, *end_ptr;
data/pfstools-2.1.0/src/filter/pfscut.cpp:169:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    left=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfscut.cpp:172:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    right=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfscut.cpp:175:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    top=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfscut.cpp:178:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    bottom=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfscut.cpp:181:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    width=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfscut.cpp:185:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    height=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfspad.cpp:183:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    left=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfspad.cpp:186:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    right=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfspad.cpp:189:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    top=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfspad.cpp:192:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    bottom=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfspad.cpp:195:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    width=atoi(optarg);
data/pfstools-2.1.0/src/filter/pfspad.cpp:199:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    height=atoi(optarg);
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp: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(this->y_i, other.y_i, lut_size * sizeof(float));
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:199: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(this->y_i, other.y_i, lut_size * sizeof(float));
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:272: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(this->y_i, other.y_i, lut_size * sizeof(Ty));
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:281: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(this->y_i, other.y_i, lut_size * sizeof(Ty));
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:434:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE_LENGTH];
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:560:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[MAX_LINE_LENGTH];
data/pfstools-2.1.0/src/matlab/compatibility.h:39:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open _open
data/pfstools-2.1.0/src/matlab/pfs_read_rgbe.cpp:58: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 *fh = fopen( file_name, "rb" );
data/pfstools-2.1.0/src/matlab/pfs_read_rgbe.cpp:79:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char error_message[100];
data/pfstools-2.1.0/src/matlab/pfs_transform_colorspace.cpp:109:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char error_message[100];
data/pfstools-2.1.0/src/matlab/pfsget.cpp:169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error_message[100];
data/pfstools-2.1.0/src/matlab/pfsopen.cpp:100:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fid = open( fileName, O_CREAT | O_TRUNC | O_RDWR | O_BINARY, S_IREAD | S_IWRITE );
data/pfstools-2.1.0/src/matlab/pfsopen.cpp:109:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fid = open( fileName, O_RDONLY | O_BINARY );
data/pfstools-2.1.0/src/matlab/pfsput.cpp:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error_message[100];
data/pfstools-2.1.0/src/octave/pfsopen.cpp:106: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).
        fh = fopen( fileName, "wb" );
data/pfstools-2.1.0/src/octave/pfsopen.cpp:116: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).
        fh = fopen( fileName, "rb" );
data/pfstools-2.1.0/src/octave/pfsread.cpp:64: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).
      fh = fopen( fileName, "rb" );
data/pfstools-2.1.0/src/octave/pfswrite.cpp:67: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).
      fh = fopen( fileName, "ab" );
data/pfstools-2.1.0/src/pfs/pfs.cpp:516:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAX_TAG_STRING];
data/pfstools-2.1.0/src/pfs/pfs.cpp:524: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 skip_buf[SKIP_BUF_LEN];
data/pfstools-2.1.0/src/pfs/pfs.cpp:566:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[5];
data/pfstools-2.1.0/src/pfs/pfs.cpp:588: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 channelName[MAX_CHANNEL_NAME+1], *rs;
data/pfstools-2.1.0/src/pfs/pfs.h:588: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 msg[1024];
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:107: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[1024];
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:229:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          fh = fopen( fileName, fopenMode );
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:236:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char msg[1024];
data/pfstools-2.1.0/src/pfsglview/histogram.cpp:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ss[200];
data/pfstools-2.1.0/src/pfsglview/histogram.cpp:174:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf( ss, "logLum.:<%.3f, %.3f>"
data/pfstools-2.1.0/src/pfsglview/m_histogram.cpp:487:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ss[200];
data/pfstools-2.1.0/src/pfsglview/m_histogram.cpp:488:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf( ss, "logLum.:<%.3f, %.3f>"
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:66:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[256];
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:72: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, "Frame: %d", frameNo);
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:82:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf( buffer, "zoom scale: %.6f", zoom_scale);
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:88: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, "screen    : %4d, %4d : %8d, %8d, %8d", positionX, positionY, valueR, valueG, valueB);
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:95: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, "data      : %4d, %4d : %5.2e, %5.2e, %5.2e", rawPositionX, rawPositionY, rawValueX, rawValueY, rawValueZ);
data/pfstools-2.1.0/src/pfsglview/pfsglview.cpp:1687:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char title[2000];
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ss[200];
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:61: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( ss, "Frame: %d", frameNo);
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szoom[10];
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:70: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( szoom, "ZOOM");
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:72: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( szoom, "PAN");
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:80: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( ss, "screen: %d,%d : %d,%d,%d", pixelX, pixelY, colR, colG, colB);
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:87: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( ss, "data: %d,%d : %.6f,%.6f,%.6f", rawPosX, rawPosY, rawX, rawY, rawZ);
data/pfstools-2.1.0/src/pfsview/luminancerange_widget.cpp:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[10];
data/pfstools-2.1.0/src/pfsview/luminancerange_widget.cpp:137:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( str, "%g", x );
data/pfstools-2.1.0/src/pfsview/main.cpp:417: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 pointerValueStr[256];
data/pfstools-2.1.0/src/pfsview/main.cpp:419: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( pointerValueStr, "(x,y)=(%4d,%4d) ", pv.x, pv.y );
data/pfstools-2.1.0/src/pfsview/main.cpp:488: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 strBuf[20];
data/pfstools-2.1.0/src/pfsview/main.cpp:489: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( strBuf, "%d%%", (int)(pfsView->getZoom()*100) );
data/pfstools-2.1.0/src/pfsview/main.cpp:506: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 ev_str[100];
data/pfstools-2.1.0/src/pfsview/main.cpp:507: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( ev_str, "EV = %+.2g f-stops   %+.2g D   %.4g",  -lumRange->getRangeWindowMax()*log(2)/log(10),
data/pfstools-2.1.0/src/pfsview/pfsview_widget.cpp:514:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( eLine, line, sizeof( QRgb )*img->width() );
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:55:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char frame_name[FRAME_NAME_MAX+1];
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:182: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( frame_name, "frame #%d", frame_no );
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:187: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( frame_name, "..." );
data/pfstools-2.1.0/src/tmo/fattal02/tmo_fattal02.cpp:65: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 *fh = fopen( fileName, "wb" );
data/pfstools-2.1.0/src/tmo/ferradans11/tmo_ferradans11.cpp:60: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 *fh = fopen( fileName, "wb" );
data/pfstools-2.1.0/src/tmo/ferradans11/tmo_ferradans11.cpp:197: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 indice[3];
data/pfstools-2.1.0/src/tmo/mai11/compression_tmo.cpp:44:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(this->y_i, other.y_i, lut_size * sizeof(double));
data/pfstools-2.1.0/src/tmo/mai11/compression_tmo.cpp:54:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(this->y_i, other.y_i, lut_size * sizeof(double));
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:91:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char frame_name[FRAME_NAME_MAX+1];
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:158: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( frame_name, "frame #%d", (int)frame_no );
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:163: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( frame_name, "..." );
data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.cpp:135: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 ss[30];
data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.cpp:144: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(ss, "Gx %p ", pyramid->Gx);
data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.cpp:147: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(ss, "Gy %p ", pyramid->Gy);	
data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.cpp:300: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(b, a, sizeof(float)*n);
data/pfstools-2.1.0/src/tmo/mantiuk06/contrast_domain.cpp:582: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 *fh = fopen( file_name, "wb" );
data/pfstools-2.1.0/src/tmo/mantiuk08/display_adaptive_tmo.cpp:167:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(this->y_i, other.y_i, lut_size * sizeof(double));
data/pfstools-2.1.0/src/tmo/mantiuk08/display_adaptive_tmo.cpp:177: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(this->y_i, other.y_i, lut_size * sizeof(double));
data/pfstools-2.1.0/src/tmo/mantiuk08/display_adaptive_tmo.cpp:209: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 *fh = fopen( fileName, "wb" );
data/pfstools-2.1.0/src/tmo/mantiuk08/display_function.cpp:104: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 *fh = fopen( file_name, "r" );
data/pfstools-2.1.0/src/tmo/mantiuk08/display_function.cpp:112:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[max_line];
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:95:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char frame_name[FRAME_NAME_MAX+1];
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:248:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    tc_FH = fopen( output_tc, "w" );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:271: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( frame_name, "frame #%d", (int)frame_no );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:276: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( frame_name, "..." );
data/pfstools-2.1.0/src/tmo/pfstmo/pfstmo.h:160: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(to->getRawData(), from->getRawData(), from->getRows() * from->getCols() * sizeof(T));
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:85:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int read;
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:91:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if( read != 5 )
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:103:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if( read != 1 || headerID[0] != 0x0a ) 
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:120:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read != lineSize )
data/pfstools-2.1.0/src/fileformat/pfsinpfm.cpp:156:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read != header.width )
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:68:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read != width ) {
data/pfstools-2.1.0/src/fileformat/pfsinyuv.cpp:83:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for ( unsigned int i = 0; i < strlen(charsToRemove); ++i ) {
data/pfstools-2.1.0/src/fileformat/rgbeio.cpp:203:10:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      || sscanf(head,"%3s %d %3s %d",ybuf,&height,xbuf,&width) != 4 )
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:347:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strncmp(opts, OPTION_ANGLE, strlen(OPTION_ANGLE)) == 0)
data/pfstools-2.1.0/src/filter/pfspanoramic.cpp:349:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        totalAngle = strtod(opts + strlen(OPTION_ANGLE) + 1, &delimiter);
data/pfstools-2.1.0/src/filter/pfstag.cpp:68:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if( remove ) equalSign = tag + strlen( tag );
data/pfstools-2.1.0/src/getopt/getopt.c:209:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (namelen == (unsigned int)strlen(p->name))
data/pfstools-2.1.0/src/getopt/getopt.c:246: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).
				d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:272: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).
						d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:287: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).
						d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:292: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).
				d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:370:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if ((unsigned int) (nameend - d->__nextchar) == strlen(p->name))
data/pfstools-2.1.0/src/getopt/getopt.c:391: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).
					d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:408: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).
							d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:422: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).
							d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:428: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).
					d->__nextchar += strlen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:669:34:  [1] (buffer) wcslen:
  Does not handle 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 (namelen == (unsigned int)wcslen(p->name))
data/pfstools-2.1.0/src/getopt/getopt.c:706:22:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:732:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:747:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:752:22:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:830:54:  [1] (buffer) wcslen:
  Does not handle 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 ((unsigned int) (nameend - d->__nextchar) == wcslen(p->name))
data/pfstools-2.1.0/src/getopt/getopt.c:851:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:868:25:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:882:25:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/getopt/getopt.c:888:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					d->__nextchar += wcslen(d->__nextchar);
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:541:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read( const char *file_name, int columns )
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:642:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  basis_table.read( lut_filename.str().c_str(), basis_no+1 );
data/pfstools-2.1.0/src/hdrhtml/hdrhtml.cpp:821:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  coeff_table.read( lut_filename.str().c_str(), image_list.front().basis+1 );
data/pfstools-2.1.0/src/matlab/mex_utils.cpp:25:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *buf = (char*)mxCalloc( strlen( str )+1, sizeof(char) );
data/pfstools-2.1.0/src/pfs/pfs.cpp:144: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).
    assert( tagValue[strlen( tagValue ) -1] == PFSEOLCH );
data/pfstools-2.1.0/src/pfs/pfs.cpp:145:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tagList.push_back( string( tagValue, strlen( tagValue ) -1 ) );
data/pfstools-2.1.0/src/pfs/pfs.cpp:155: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).
    size_t tagNameLen = strlen( tagName );
data/pfstools-2.1.0/src/pfs/pfs.cpp:520:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen(buf)==(MAX_TAG_STRING-1) ) { // Crop the string if needed
data/pfstools-2.1.0/src/pfs/pfs.cpp:527:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      } while( read != NULL && strlen(skip_buf)==(SKIP_BUF_LEN-1) );
data/pfstools-2.1.0/src/pfs/pfs.cpp:527: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).
      } while( read != NULL && strlen(skip_buf)==(SKIP_BUF_LEN-1) );
data/pfstools-2.1.0/src/pfs/pfs.cpp:564:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read;
data/pfstools-2.1.0/src/pfs/pfs.cpp:574:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read != 2 || width <= 0 || width > MAX_RES || height <= 0 || height > MAX_RES )
data/pfstools-2.1.0/src/pfs/pfs.cpp:577:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read != 1 || channelCount < 0 || channelCount > MAX_CHANNEL_COUNT )
data/pfstools-2.1.0/src/pfs/pfs.cpp:592:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen( channelName );
data/pfstools-2.1.0/src/pfs/pfs.cpp:613:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if( read != size )
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:160:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if( !strncmp( argv[i]+2, opt->name, strlen(opt->name) ) ) {
data/pfstools-2.1.0/src/pfs/pfsutils.cpp:162: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( argv[i][strlen(opt->name)+2] == '=' ) { // --long=arg
data/pfstools-2.1.0/src/pfsglview/histogram.cpp:177:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = (int) strlen(ss);
data/pfstools-2.1.0/src/pfsglview/m_histogram.cpp:491:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = (int) strlen(ss);
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:73: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).
		for (int i = 0; i < (int) strlen(buffer); i++) 
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:78:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (int i = 0; i < (int) strlen(buffer); i++) 
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:83:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (int i = 0; i < (int) strlen(buffer); i++)
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:89: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).
		for (int i = 0; i < (int) strlen(buffer); i++) 
data/pfstools-2.1.0/src/pfsglview/m_status.cpp:96: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).
		for (int i = 0; i < (int) strlen(buffer); i++) 
data/pfstools-2.1.0/src/pfsglview/pfsglview.cpp:448:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(wait_to_start * 1000) ;
data/pfstools-2.1.0/src/pfsglview/pfsglview.cpp:583:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	        usleep(wait_to_start * 1000) ;
data/pfstools-2.1.0/src/pfsglview/pfsglview.cpp:1740:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(1000) ;
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:62: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).
		for (int i = 0; i < (int) strlen(ss); i++) 
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:75:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (int i = 0; i < (int) strlen(ss); i++) 
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:81: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).
		for (int i = 0; i < (int) strlen(ss); i++) 
data/pfstools-2.1.0/src/pfsglview/winstat.cpp:88: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).
		for (int i = 0; i < (int) strlen(ss); i++) 
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:184:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = strlen( file_name );
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:188:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( frame_name+3, file_name + strlen( file_name ) - len, len+1 );
data/pfstools-2.1.0/src/tmo/durand02/pfstmo_durand02.cpp:188:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncpy( frame_name+3, file_name + strlen( file_name ) - len, len+1 );
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:160:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = strlen( file_name );
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:164:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( frame_name+3, file_name + strlen( file_name ) - len, len+1 );
data/pfstools-2.1.0/src/tmo/mai11/pfstmo_mai11.cpp:164:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncpy( frame_name+3, file_name + strlen( file_name ) - len, len+1 );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:273:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = strlen( file_name );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:277:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy( frame_name+3, file_name + strlen( file_name ) - len, len+1 );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:277:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncpy( frame_name+3, file_name + strlen( file_name ) - len, len+1 );
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:375:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int size, frame_no, read;
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:377:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if( read != 2 )
data/pfstools-2.1.0/src/tmo/mantiuk08/pfstmo_mantiuk08.cpp:388:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( read != 2 )

ANALYSIS SUMMARY:

Hits = 382
Lines analyzed = 43172 in approximately 1.15 seconds (37455 lines/second)
Physical Source Lines of Code (SLOC) = 27474
Hits@level = [0] 258 [1]  74 [2] 128 [3]  61 [4] 119 [5]   0
Hits@level+ = [0+] 640 [1+] 382 [2+] 308 [3+] 180 [4+] 119 [5+]   0
Hits/KSLOC@level+ = [0+] 23.2948 [1+] 13.9041 [2+] 11.2106 [3+] 6.55165 [4+] 4.33137 [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.