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/libminc-2.4.03/ezminc/examples/create_grid_file.cpp
Examining data/libminc-2.4.03/ezminc/examples/trilinear_resample.cpp
Examining data/libminc-2.4.03/ezminc/examples/volume_avg.cpp
Examining data/libminc-2.4.03/ezminc/examples/volume_msq_dist.cpp
Examining data/libminc-2.4.03/ezminc/minc_1_rw.cpp
Examining data/libminc-2.4.03/ezminc/minc_1_rw.h
Examining data/libminc-2.4.03/ezminc/minc_1_simple.h
Examining data/libminc-2.4.03/ezminc/minc_1_simple_rw.cpp
Examining data/libminc-2.4.03/ezminc/minc_1_simple_rw.h
Examining data/libminc-2.4.03/ezminc/minc_io_4d_volume.h
Examining data/libminc-2.4.03/ezminc/minc_io_exceptions.h
Examining data/libminc-2.4.03/ezminc/minc_io_fixed_vector.h
Examining data/libminc-2.4.03/ezminc/minc_io_simple_volume.h
Examining data/libminc-2.4.03/ezminc/tests/ezminc_rw_test.cpp
Examining data/libminc-2.4.03/ezminc/tests/ezminc_stats.cpp
Examining data/libminc-2.4.03/ezminc/tests/minc_rw_test2.cpp
Examining data/libminc-2.4.03/ezminc/tests/minc_rw_test_4d.cpp
Examining data/libminc-2.4.03/ezminc/tests/minc_rw_test_simple.cpp
Examining data/libminc-2.4.03/libcommon/ParseArgv.c
Examining data/libminc-2.4.03/libcommon/ParseArgv.h
Examining data/libminc-2.4.03/libcommon/minc2_error.c
Examining data/libminc-2.4.03/libcommon/minc2_error.h
Examining data/libminc-2.4.03/libcommon/minc_common_defs.h
Examining data/libminc-2.4.03/libcommon/minc_config.c
Examining data/libminc-2.4.03/libcommon/minc_config.h
Examining data/libminc-2.4.03/libcommon/minc_error.c
Examining data/libminc-2.4.03/libcommon/minc_error.h
Examining data/libminc-2.4.03/libcommon/read_file_names.c
Examining data/libminc-2.4.03/libcommon/read_file_names.h
Examining data/libminc-2.4.03/libcommon/restructure.c
Examining data/libminc-2.4.03/libcommon/restructure.h
Examining data/libminc-2.4.03/libcommon/time_stamp.c
Examining data/libminc-2.4.03/libcommon/time_stamp.h
Examining data/libminc-2.4.03/libsrc/dim_conversion.c
Examining data/libminc-2.4.03/libsrc/hdf_convenience.c
Examining data/libminc-2.4.03/libsrc/hdf_convenience.h
Examining data/libminc-2.4.03/libsrc/image_conversion.c
Examining data/libminc-2.4.03/libsrc/minc.h
Examining data/libminc-2.4.03/libsrc/minc_basic.h
Examining data/libminc-2.4.03/libsrc/minc_compat.c
Examining data/libminc-2.4.03/libsrc/minc_compat.h
Examining data/libminc-2.4.03/libsrc/minc_convenience.c
Examining data/libminc-2.4.03/libsrc/minc_format_convert.c
Examining data/libminc-2.4.03/libsrc/minc_format_convert.h
Examining data/libminc-2.4.03/libsrc/minc_private.h
Examining data/libminc-2.4.03/libsrc/minc_routines.h
Examining data/libminc-2.4.03/libsrc/minc_simple.c
Examining data/libminc-2.4.03/libsrc/minc_simple.h
Examining data/libminc-2.4.03/libsrc/minc_structures.h
Examining data/libminc-2.4.03/libsrc/minc_useful.h
Examining data/libminc-2.4.03/libsrc/minc_varlists.h
Examining data/libminc-2.4.03/libsrc/nd_loop.c
Examining data/libminc-2.4.03/libsrc/nd_loop.h
Examining data/libminc-2.4.03/libsrc/strdup.c
Examining data/libminc-2.4.03/libsrc/type_limits.h
Examining data/libminc-2.4.03/libsrc/value_conversion.c
Examining data/libminc-2.4.03/libsrc/voxel_loop.c
Examining data/libminc-2.4.03/libsrc/voxel_loop.h
Examining data/libminc-2.4.03/libsrc/netcdf_convenience.c
Examining data/libminc-2.4.03/libsrc2/convert.c
Examining data/libminc-2.4.03/libsrc2/datatype.c
Examining data/libminc-2.4.03/libsrc2/dimension.c
Examining data/libminc-2.4.03/libsrc2/free.c
Examining data/libminc-2.4.03/libsrc2/grpattr.c
Examining data/libminc-2.4.03/libsrc2/hyper.c
Examining data/libminc-2.4.03/libsrc2/label.c
Examining data/libminc-2.4.03/libsrc2/m2util.c
Examining data/libminc-2.4.03/libsrc2/minc2.h
Examining data/libminc-2.4.03/libsrc2/minc2_api.h
Examining data/libminc-2.4.03/libsrc2/minc2_defs.h
Examining data/libminc-2.4.03/libsrc2/minc2_private.h
Examining data/libminc-2.4.03/libsrc2/minc2_structs.h
Examining data/libminc-2.4.03/libsrc2/minc_compat2.h
Examining data/libminc-2.4.03/libsrc2/record.c
Examining data/libminc-2.4.03/libsrc2/slice.c
Examining data/libminc-2.4.03/libsrc2/valid.c
Examining data/libminc-2.4.03/libsrc2/volprops.c
Examining data/libminc-2.4.03/libsrc2/volume.c
Examining data/libminc-2.4.03/nifti/nifti1.h
Examining data/libminc-2.4.03/nifti/nifti1_io.c
Examining data/libminc-2.4.03/nifti/nifti1_io.h
Examining data/libminc-2.4.03/nifti/znzlib.c
Examining data/libminc-2.4.03/nifti/znzlib.h
Examining data/libminc-2.4.03/testdir/create_grid_xfm.c
Examining data/libminc-2.4.03/testdir/icv.c
Examining data/libminc-2.4.03/testdir/icv_dim.c
Examining data/libminc-2.4.03/testdir/icv_dim1.c
Examining data/libminc-2.4.03/testdir/icv_fillvalue.c
Examining data/libminc-2.4.03/testdir/icv_range.c
Examining data/libminc-2.4.03/testdir/icv_vec.c
Examining data/libminc-2.4.03/testdir/minc.c
Examining data/libminc-2.4.03/testdir/minc2-convert-test.c
Examining data/libminc-2.4.03/testdir/minc2-create-test-images-2.c
Examining data/libminc-2.4.03/testdir/minc2-create-test-images.c
Examining data/libminc-2.4.03/testdir/minc2-datatype-test.c
Examining data/libminc-2.4.03/testdir/minc2-dimension-test.c
Examining data/libminc-2.4.03/testdir/minc2-full-test.c
Examining data/libminc-2.4.03/testdir/minc2-grpattr-test.c
Examining data/libminc-2.4.03/testdir/minc2-hyper-test-2.c
Examining data/libminc-2.4.03/testdir/minc2-hyper-test.c
Examining data/libminc-2.4.03/testdir/minc2-label-test.c
Examining data/libminc-2.4.03/testdir/minc2-large-attribute.c
Examining data/libminc-2.4.03/testdir/minc2-leak-test.c
Examining data/libminc-2.4.03/testdir/minc2-m2stats.c
Examining data/libminc-2.4.03/testdir/minc2-multires-test.c
Examining data/libminc-2.4.03/testdir/minc2-read-metadata.c
Examining data/libminc-2.4.03/testdir/minc2-read-rgb.c
Examining data/libminc-2.4.03/testdir/minc2-record-test.c
Examining data/libminc-2.4.03/testdir/minc2-slice-test.c
Examining data/libminc-2.4.03/testdir/minc2-valid-test.c
Examining data/libminc-2.4.03/testdir/minc2-vector_dimension-test.c
Examining data/libminc-2.4.03/testdir/minc2-volprops-test.c
Examining data/libminc-2.4.03/testdir/minc_conversion.c
Examining data/libminc-2.4.03/testdir/minc_long_attr.c
Examining data/libminc-2.4.03/testdir/minc_types.c
Examining data/libminc-2.4.03/testdir/mincapi.c
Examining data/libminc-2.4.03/testdir/nifti_test.c
Examining data/libminc-2.4.03/testdir/test_arg_parse.c
Examining data/libminc-2.4.03/testdir/test_mconv.c
Examining data/libminc-2.4.03/testdir/test_speed.c
Examining data/libminc-2.4.03/testdir/test_xfm.c
Examining data/libminc-2.4.03/testdir/vio_xfm_test/copy-xfm.c
Examining data/libminc-2.4.03/testdir/vio_xfm_test/example_modify.c
Examining data/libminc-2.4.03/testdir/vio_xfm_test/example_tags.c
Examining data/libminc-2.4.03/testdir/vio_xfm_test/example_volume_io.c
Examining data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c
Examining data/libminc-2.4.03/testdir/vio_xfm_test/verify_xfm.c
Examining data/libminc-2.4.03/testdir/volume_test.c
Examining data/libminc-2.4.03/testdir/multidim_test.c
Examining data/libminc-2.4.03/volume_io/Geometry/colour.c
Examining data/libminc-2.4.03/volume_io/Geometry/colour_def.c
Examining data/libminc-2.4.03/volume_io/Geometry/gaussian.c
Examining data/libminc-2.4.03/volume_io/Geometry/inverse.c
Examining data/libminc-2.4.03/volume_io/Geometry/newton.c
Examining data/libminc-2.4.03/volume_io/Geometry/points.c
Examining data/libminc-2.4.03/volume_io/Geometry/splines.c
Examining data/libminc-2.4.03/volume_io/Geometry/tensors.c
Examining data/libminc-2.4.03/volume_io/Geometry/transforms.c
Examining data/libminc-2.4.03/volume_io/Include/internal_volume_io.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/alloc.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/arrays.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/basic.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/def_math.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/files.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/geom_structs.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/geometry.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/multidim.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/progress.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/string_funcs.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/system_dependent.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/transforms.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/vol_io_prototypes.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/volume.h
Examining data/libminc-2.4.03/volume_io/Include/volume_io/volume_cache.h
Examining data/libminc-2.4.03/volume_io/MNI_formats/gen_xf_io.c
Examining data/libminc-2.4.03/volume_io/MNI_formats/gen_xfs.c
Examining data/libminc-2.4.03/volume_io/MNI_formats/grid_transforms.c
Examining data/libminc-2.4.03/volume_io/MNI_formats/mni_io.c
Examining data/libminc-2.4.03/volume_io/MNI_formats/tag_points.c
Examining data/libminc-2.4.03/volume_io/MNI_formats/thin_plate_spline.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/alloc.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/alloc_check.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/arrays.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/files.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/print.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/progress.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/string.c
Examining data/libminc-2.4.03/volume_io/Prog_utils/time.c
Examining data/libminc-2.4.03/volume_io/Volumes/evaluate.c
Examining data/libminc-2.4.03/volume_io/Volumes/get_hyperslab.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_free.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_mgh.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_mgh.h
Examining data/libminc-2.4.03/volume_io/Volumes/input_mnc.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_mnc2.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_nifti.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_nifti.h
Examining data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c
Examining data/libminc-2.4.03/volume_io/Volumes/input_nrrd.h
Examining data/libminc-2.4.03/volume_io/Volumes/input_volume.c
Examining data/libminc-2.4.03/volume_io/Volumes/multidim_arrays.c
Examining data/libminc-2.4.03/volume_io/Volumes/output_mnc.c
Examining data/libminc-2.4.03/volume_io/Volumes/output_mnc2.c
Examining data/libminc-2.4.03/volume_io/Volumes/output_volume.c
Examining data/libminc-2.4.03/volume_io/Volumes/set_hyperslab.c
Examining data/libminc-2.4.03/volume_io/Volumes/volume_cache.c
Examining data/libminc-2.4.03/volume_io/Volumes/volumes.c
Examining data/libminc-2.4.03/volume_io/example/convert_volume_to_byte.c

FINAL RESULTS:

data/libminc-2.4.03/libsrc/voxel_loop.c:1021:26:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
                  (void) strncat(dimname, "-width", MAX_NC_NAME);
data/libminc-2.4.03/libsrc/voxel_loop.c:1055:17:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
         (void) strncat(dimname, "-width", MAX_NC_NAME);
data/libminc-2.4.03/libsrc2/volume.c:298:7:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
      strncat(dimorder, ",", MI2_CHAR_LENGTH - 1);
data/libminc-2.4.03/ezminc/examples/create_grid_file.cpp:77:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if(!clobber && !access (output.c_str(), F_OK))
data/libminc-2.4.03/ezminc/examples/volume_avg.cpp:87:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if(!clobber && !access (output.c_str(), F_OK))
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:1464:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(str, append_history);
data/libminc-2.4.03/libcommon/ParseArgv.c:158:52:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define FPRINTF if (!(flags&ARGV_NO_PRINT)) (void) fprintf
data/libminc-2.4.03/libcommon/ParseArgv.c:403:52:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define FPRINTF if (!(flags&ARGV_NO_PRINT)) (void) fprintf
data/libminc-2.4.03/libcommon/minc_config.c:24:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf 
data/libminc-2.4.03/libcommon/minc_config.c:24:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf 
data/libminc-2.4.03/libcommon/minc_config.c:25:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf 
data/libminc-2.4.03/libcommon/minc_error.c:277:10:  [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.
  (void) fprintf(stderr, p2, p3);
data/libminc-2.4.03/libcommon/minc_error.c:383:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf ( _MI2_log.fp, fmt, ap );
data/libminc-2.4.03/libcommon/time_stamp.c:74:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#ifndef snprintf
data/libminc-2.4.03/libcommon/time_stamp.c:75:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libminc-2.4.03/libcommon/time_stamp.c:75:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/libminc-2.4.03/libcommon/time_stamp.c:121: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).
   (void) strcpy(str, the_time);
data/libminc-2.4.03/libcommon/time_stamp.c:123:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   (void) strcat(str, separator);
data/libminc-2.4.03/libcommon/time_stamp.c:134:16:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        (void) strcat(str, argv[i]);
data/libminc-2.4.03/libsrc/hdf_convenience.c:322:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(varpath, varnm);
data/libminc-2.4.03/libsrc/hdf_convenience.c:392:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(varnm, MIrootvariable);
data/libminc-2.4.03/libsrc/hdf_convenience.c:398:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(varnm, var->name);
data/libminc-2.4.03/libsrc/hdf_convenience.c:467:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(name, MIsigntype);
data/libminc-2.4.03/libsrc/hdf_convenience.c:618:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(str_buf, dim->name);
data/libminc-2.4.03/libsrc/hdf_convenience.c:769:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(varnm_ptr, MIrootvariable);
data/libminc-2.4.03/libsrc/hdf_convenience.c:867:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(varnm_ptr, var->name);
data/libminc-2.4.03/libsrc/hdf_convenience.c:914: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(dimnm_ptr, dim->name);
data/libminc-2.4.03/libsrc/hdf_convenience.c:999:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy((char *) value, MI_UNSIGNED);
data/libminc-2.4.03/libsrc/hdf_convenience.c:1002:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy((char *) value, MI_SIGNED);
data/libminc-2.4.03/libsrc/hdf_convenience.c:2153:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(tpath, cpath);
data/libminc-2.4.03/libsrc/hdf_convenience.c:2154:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tpath, temp);
data/libminc-2.4.03/libsrc/hdf_convenience.c:2165:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(tpath, cpath);
data/libminc-2.4.03/libsrc/hdf_convenience.c:2166:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tpath, temp);
data/libminc-2.4.03/libsrc/image_conversion.c:836:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         (void) strcpy(value, MI_SIGNED);
data/libminc-2.4.03/libsrc/image_conversion.c:838:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         (void) strcpy(value, MI_UNSIGNED);
data/libminc-2.4.03/libsrc/image_conversion.c:840:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         (void) strcpy(value, MI_EMPTY_STRING);
data/libminc-2.4.03/libsrc/image_conversion.c:843:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      (void) strcpy(value, icvp->user_maxvar);
data/libminc-2.4.03/libsrc/image_conversion.c:846:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      (void) strcpy(value, icvp->user_minvar);
data/libminc-2.4.03/libsrc/minc_convenience.c:638:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   index=strlen(strcpy(pointer_string,MI_VARATT_POINTER_PREFIX));
data/libminc-2.4.03/libsrc/minc_convenience.c:764:14:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      (void) strcpy(&child_list[child_list_size], MI_CHILD_SEPARATOR);
data/libminc-2.4.03/libsrc/minc_convenience.c:980:20:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   if ((str=strstr(strcpy(string, name),MI_WIDTH_SUFFIX)) == NULL) {
data/libminc-2.4.03/libsrc/minc_convenience.c:1408:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(att_val + att_len, tm_stamp);
data/libminc-2.4.03/libsrc/minc_convenience.c:1496:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(user_str, temp_ptr);
data/libminc-2.4.03/libsrc/minc_simple.c:1152:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    printf(MM_FMT, buf_xyz[i][j][k]);
data/libminc-2.4.03/libsrc/minc_simple.c:1154:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    printf(MM_FMT, buf_xzy[i][j][k]);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:260:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   (void) sprintf(whole_command, "exec %s %s > %s 2> /dev/null", 
data/libminc-2.4.03/libsrc/netcdf_convenience.c:262:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   status = system(whole_command);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:382:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
         (void) strcat(strcpy(compfile, path), 
data/libminc-2.4.03/libsrc/netcdf_convenience.c:382:24:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         (void) strcat(strcpy(compfile, path), 
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1819: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(tmpfile_ptr, tmpdir_ptr);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1820:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmpfile_ptr, pat_str);
data/libminc-2.4.03/libsrc/strdup.c:56: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).
   return strcpy(new_string, string);
data/libminc-2.4.03/libsrc/voxel_loop.c:1192:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   (void) strcat(string, arg_string);
data/libminc-2.4.03/libsrc2/datatype.c:97:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy ( *name, MI_NATIVE );
data/libminc-2.4.03/libsrc2/grpattr.c:41:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(fullpath, length, MI_ROOT_PATH "/image/%d",
data/libminc-2.4.03/libsrc2/grpattr.c:102: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 ( frame->relpath, path );
data/libminc-2.4.03/libsrc2/grpattr.c:169:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy ( frame->relpath, data->frame_ptr->relpath );
data/libminc-2.4.03/libsrc2/grpattr.c:176:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat ( frame->relpath, tmp );
data/libminc-2.4.03/libsrc2/grpattr.c:287:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat ( data->frame_ptr->relpath, name );
data/libminc-2.4.03/libsrc2/grpattr.c:305:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy ( tmp, data->frame_ptr->relpath );
data/libminc-2.4.03/libsrc2/grpattr.c:915:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy ( std_name, path );
data/libminc-2.4.03/libsrc2/hyper.c:199:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/image/%d/image", volume->selected_resolution);
data/libminc-2.4.03/libsrc2/hyper.c:411:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/image/%d/image", volume->selected_resolution);
data/libminc-2.4.03/libsrc2/hyper.c:895:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/image/%d/image", volume->selected_resolution);
data/libminc-2.4.03/libsrc2/m2util.c:1450:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf ( path, MI_ROOT_PATH "/image/%d", grp );
data/libminc-2.4.03/libsrc2/minc2_private.h:214:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf 
data/libminc-2.4.03/libsrc2/minc2_private.h:214:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf 
data/libminc-2.4.03/libsrc2/minc2_private.h:215:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf 
data/libminc-2.4.03/libsrc2/volume.c:757:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(name, dimensions[i]->name);
data/libminc-2.4.03/libsrc2/volume.c:1000: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(props_handle->record_name, create_props->record_name);
data/libminc-2.4.03/libsrc2/volume.c:1055:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/image/%d/image", volume->selected_resolution);
data/libminc-2.4.03/libsrc2/volume.c:1165:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/dimensions/%s", hdim->name);
data/libminc-2.4.03/libsrc2/volume.c:1183:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/dimensions/%s-width", hdim->name);
data/libminc-2.4.03/libsrc2/volume.c:1189:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(path, MI_ROOT_PATH "/info/%s-width", hdim->name);
data/libminc-2.4.03/libsrc2/volume.c:1216:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(path, MI_ROOT_PATH "/dimensions/%s", dimname);
data/libminc-2.4.03/nifti/nifti1_io.c:1171:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  if( dup ) strcpy(dup, str);
data/libminc-2.4.03/nifti/nifti1_io.c:2635:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/libminc-2.4.03/nifti/nifti1_io.c:2635:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/libminc-2.4.03/nifti/nifti1_io.c:2635:54:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(elist[0], extgz); strcat(elist[1], extgz); strcat(elist[2], extgz);
data/libminc-2.4.03/nifti/nifti1_io.c:2800:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(hdrname,basename);
data/libminc-2.4.03/nifti/nifti1_io.c:2801:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(hdrname,elist[efirst]);
data/libminc-2.4.03/nifti/nifti1_io.c:2804:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(hdrname,extzip); 
data/libminc-2.4.03/nifti/nifti1_io.c:2812:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(hdrname,basename);
data/libminc-2.4.03/nifti/nifti1_io.c:2813:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(hdrname,elist[efirst]);
data/libminc-2.4.03/nifti/nifti1_io.c:2816:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(hdrname,extzip); 
data/libminc-2.4.03/nifti/nifti1_io.c:2875: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(imgname,basename);
data/libminc-2.4.03/nifti/nifti1_io.c:2876:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(imgname,extnia);
data/libminc-2.4.03/nifti/nifti1_io.c:2889: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(imgname,basename);
data/libminc-2.4.03/nifti/nifti1_io.c:2890:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(imgname,elist[first]);
data/libminc-2.4.03/nifti/nifti1_io.c:2893:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(imgname,extzip);
data/libminc-2.4.03/nifti/nifti1_io.c:2899: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(imgname,basename);
data/libminc-2.4.03/nifti/nifti1_io.c:2900:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(imgname,elist[1-first]);  /* can do this with only 2 choices */
data/libminc-2.4.03/nifti/nifti1_io.c:2903:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(imgname,extzip);
data/libminc-2.4.03/nifti/nifti1_io.c:2945:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(iname, prefix);
data/libminc-2.4.03/nifti/nifti1_io.c:2962:50:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   else if( nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcat(iname, extnii);
data/libminc-2.4.03/nifti/nifti1_io.c:2963:50:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   else if( nifti_type == NIFTI_FTYPE_ASCII )    strcat(iname, extnia);
data/libminc-2.4.03/nifti/nifti1_io.c:2964:50:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   else                                          strcat(iname, exthdr);
data/libminc-2.4.03/nifti/nifti1_io.c:2967:49:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   if( comp && (!ext || !strstr(iname,extgz)) ) strcat(iname,extgz);
data/libminc-2.4.03/nifti/nifti1_io.c:3013:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(iname, prefix);
data/libminc-2.4.03/nifti/nifti1_io.c:3030:50:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   else if( nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcat(iname, extnii);
data/libminc-2.4.03/nifti/nifti1_io.c:3031:50:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   else if( nifti_type == NIFTI_FTYPE_ASCII )    strcat(iname, extnia);
data/libminc-2.4.03/nifti/nifti1_io.c:3032:50:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   else                                          strcat(iname, extimg);
data/libminc-2.4.03/nifti/nifti1_io.c:3035:49:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   if( comp && (!ext || !strstr(iname,extgz)) ) strcat(iname,extgz);
data/libminc-2.4.03/nifti/nifti1_io.c:6125:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  nifti_type = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6139:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  header_filename = %s\n",ebuf); free(ebuf);
data/libminc-2.4.03/nifti/nifti1_io.c:6142:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  image_filename = %s\n", ebuf); free(ebuf);
data/libminc-2.4.03/nifti/nifti1_io.c:6163:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  datatype_name = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6169:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf( buf+strlen(buf) , "  byteorder = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6184:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  intent_code_name = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6192:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) , "  intent_name = %s\n",ebuf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6201:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6207:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6219:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6233:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  descrip = %s\n",ebuf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6239:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) , "  aux_file = %s\n",ebuf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6246:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6284:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6296:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6323:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/znzlib.c:316:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(tmpstr,format,va);
data/libminc-2.4.03/nifti/znzlib.c:322:11:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   retval=vfprintf(stream->nzfptr,format,va);
data/libminc-2.4.03/testdir/minc2-convert-test.c:7:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-create-test-images-2.c:9:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-create-test-images.c:11:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-dimension-test.c:4:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-grpattr-test.c:5:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-hyper-test-2.c:15:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-hyper-test.c:17:41:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, printf(\
data/libminc-2.4.03/testdir/minc2-label-test.c:6:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-large-attribute.c:12:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-m2stats.c:339:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if(access(infiles[0], F_OK) != 0) {
data/libminc-2.4.03/testdir/minc2-m2stats.c:344:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if(infiles[1] != NULL && access(infiles[1], F_OK) != 0) {
data/libminc-2.4.03/testdir/minc2-m2stats.c:349:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
   if(hist_file != NULL && !clobber && access(hist_file, F_OK) != -1) {
data/libminc-2.4.03/testdir/minc2-multires-test.c:4:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-read-metadata.c:7:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-read-metadata.c:41:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(add_path,path);strcat(add_path,group_name);
data/libminc-2.4.03/testdir/minc2-read-metadata.c:41:31:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcpy(add_path,path);strcat(add_path,group_name);
data/libminc-2.4.03/testdir/minc2-read-rgb.c:7:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-record-test.c:5:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-valid-test.c:4:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-vector_dimension-test.c:5:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/minc2-volprops-test.c:4:41:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TESTRPT(msg, val) (error_cnt++, fprintf(stderr, \
data/libminc-2.4.03/testdir/nifti_test.c:209:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"nifti_add_extension %s",write_image_filename[filenameindex]);
data/libminc-2.4.03/testdir/nifti_test.c:215:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"valid_nifti_extension %s",write_image_filename[filenameindex]);
data/libminc-2.4.03/testdir/nifti_test.c:256:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"reload valid_nifti_extensions %s",write_image_filename[filenameindex]);
data/libminc-2.4.03/testdir/nifti_test.c:302:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"nifti_hdr_looks_good %s",reference_image->fname);
data/libminc-2.4.03/testdir/nifti_test.c:444:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_datatype_string %s",string);                       \
data/libminc-2.4.03/testdir/nifti_test.c:498:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_units_string_test %s",string);             \
data/libminc-2.4.03/testdir/nifti_test.c:517:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_intent_string %s",string);                 \
data/libminc-2.4.03/testdir/nifti_test.c:563:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_slice_string_test %s",string);             \
data/libminc-2.4.03/testdir/nifti_test.c:579:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf,"nifti_orientation_string_test %s",string);               \
data/libminc-2.4.03/volume_io/Include/volume_io/vol_io_prototypes.h:954:69:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
VIOAPI  void  print_error( char format[], ... ) VIO_FORMAT_FUNCTION(printf, 1, 2);
data/libminc-2.4.03/volume_io/MNI_formats/gen_xf_io.c:186:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf( volume_filename, "%s_grid_%d.mnc", prefix_filename,
data/libminc-2.4.03/volume_io/Prog_utils/files.c:307:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void) sprintf( backup_filename, "%s.%s.bkp",
data/libminc-2.4.03/volume_io/Prog_utils/files.c:312:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void) sprintf( backup_filename, "%s.%s.bkp_%d",
data/libminc-2.4.03/volume_io/Prog_utils/files.c:492:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if( system( command ) != 0 )
data/libminc-2.4.03/volume_io/Prog_utils/files.c:537:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if( system( command ) != 0 )
data/libminc-2.4.03/volume_io/Prog_utils/files.c:676:24:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                (void) strcpy( &expanded[dest], expand_value );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:878: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(tmpfile_ptr, tmpdir_ptr);
data/libminc-2.4.03/volume_io/Prog_utils/files.c:879:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(tmpfile_ptr, pat_str);
data/libminc-2.4.03/volume_io/Prog_utils/files.c:1015:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        (void) sprintf( command, "gunzip -c %s > %s", expanded, tmp_name );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:1016:26:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        command_status = system( command );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:1021:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            (void) sprintf( command, "bunzip2 -c %s > %s", expanded, tmp_name );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:1022:30:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            command_status = system( command );
data/libminc-2.4.03/volume_io/Prog_utils/print.c:123:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) vsprintf( print_buffer, format, ap );
data/libminc-2.4.03/volume_io/Prog_utils/print.c:222:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf( print_buffer, format, ap );
data/libminc-2.4.03/volume_io/Prog_utils/string.c:42:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy( str, initial );
data/libminc-2.4.03/volume_io/Prog_utils/string.c:68:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy( str, str1 );
data/libminc-2.4.03/volume_io/Prog_utils/string.c:69:12:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    (void) strcat( str, str2 );
data/libminc-2.4.03/volume_io/Prog_utils/time.c:205:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf( buffer, format, seconds, units[i] );
data/libminc-2.4.03/volume_io/Volumes/input_mnc.c:360:32:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                        (void) strcpy( prev_space_type, space_type );
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1592:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(pathname, nrrd_ptr->data_file);
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1596:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pathname, nrrd_ptr->data_file);
data/libminc-2.4.03/ezminc/examples/create_grid_file.cpp:48:8:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  	c = getopt_long (argc, argv, "vt:m:", long_options, &option_index);
data/libminc-2.4.03/ezminc/examples/trilinear_resample.cpp:45: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, "vq", long_options, &option_index);
data/libminc-2.4.03/ezminc/examples/volume_avg.cpp:57:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long (argc, argv, "s", long_options, &option_index);
data/libminc-2.4.03/ezminc/tests/ezminc_rw_test.cpp:44:37:  [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.
      buffer[i]=static_cast<TPixel>(random())*100.0/RAND_MAX;
data/libminc-2.4.03/ezminc/tests/ezminc_rw_test.cpp:47:37:  [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.
      buffer[i]=static_cast<TPixel>(random());
data/libminc-2.4.03/libcommon/minc_config.c:61:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *home_ptr = getenv("HOME");
data/libminc-2.4.03/libcommon/minc_config.c:105:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((var_ptr = getenv(name)) != NULL) {
data/libminc-2.4.03/libsrc/minc_convenience.c:1494:16:  [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.
    temp_ptr = getenv("LOGNAME");
data/libminc-2.4.03/libsrc/minc_useful.h:152:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char  *getenv();         /* on suns, this declaration is not in stdlib.h */
data/libminc-2.4.03/libsrc/minc_useful.h:155:30:  [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.
#define  ENV_EXISTS( env ) ( getenv(env) != (char *) 0 )
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1812:21:  [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.
  if ((tmpdir_ptr = getenv("TMPDIR")) == NULL) {
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1830:17:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  tmpfile_ptr = tempnam(NULL, "minc-");
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1848:7:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
  if (tmpnam(tmpfile_ptr) == NULL) {
data/libminc-2.4.03/libsrc2/volume.c:82:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  temp_ptr = getenv("LOGNAME");
data/libminc-2.4.03/testdir/multidim_test.c:154:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/multidim_test.c:162:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/test_xfm.c:67:25:  [3] (random) drand48:
  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.
	VIO_Real x = 500.0 * ( drand48() - 0.5 );
data/libminc-2.4.03/testdir/test_xfm.c:68:25:  [3] (random) drand48:
  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.
	VIO_Real y = 500.0 * ( drand48() - 0.5 );
data/libminc-2.4.03/testdir/test_xfm.c:69:25:  [3] (random) drand48:
  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.
	VIO_Real z = 500.0 * ( drand48() - 0.5 );
data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c:20:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand((unsigned int)seed);
data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c:25:8:  [3] (random) drand48:
  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.
double drand48(void)
data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c:85:30:  [3] (random) drand48:
  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.
      VIO_Real x = 500.0 * ( drand48() - 0.5 );
data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c:86:30:  [3] (random) drand48:
  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.
      VIO_Real y = 500.0 * ( drand48() - 0.5 );
data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c:87:30:  [3] (random) drand48:
  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.
      VIO_Real z = 500.0 * ( drand48() - 0.5 );
data/libminc-2.4.03/testdir/volume_test.c:96:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/volume_test.c:104:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/volume_test.c:126:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/volume_test.c:306:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/volume_test.c:312:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/volume_test.c:446:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/testdir/volume_test.c:451:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(0);
data/libminc-2.4.03/volume_io/Include/volume_io/basic.h:118:34:  [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.
#define  VIO_ENV_EXISTS( env ) ( getenv(env) != (char *) 0 )
data/libminc-2.4.03/volume_io/Prog_utils/alloc_check.c:642:15:  [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.
        str = getenv( "STOP_ALLOC_AT" );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:661:36:  [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.
                    expand_value = getenv( "HOME" );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:666:32:  [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.
                expand_value = getenv( env );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:871:21:  [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.
  if ((tmpdir_ptr = getenv("TMPDIR")) == NULL) {
data/libminc-2.4.03/volume_io/Prog_utils/files.c:889:17:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  tmpfile_ptr = tempnam(NULL, "minc-");
data/libminc-2.4.03/volume_io/Prog_utils/files.c:907:7:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
  if (tmpnam(tmpfile_ptr) == NULL) {
data/libminc-2.4.03/volume_io/Volumes/multidim_arrays.c:529:9:  [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.
    if( getenv( "VOLUME_IO_SRC_ORDER" ) )
data/libminc-2.4.03/volume_io/Volumes/multidim_arrays.c:531:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    else if( getenv( "VOLUME_IO_DEST_ORDER" ) )
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:107:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if( getenv( "VOLUME_CACHE_THRESHOLD" ) != NULL &&
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:108:21:  [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.
            sscanf( getenv( "VOLUME_CACHE_THRESHOLD" ), "%d", &n_bytes ) == 1 )
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:159:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if( getenv( "VOLUME_CACHE_SIZE" ) != NULL &&
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:160:21:  [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.
            sscanf( getenv( "VOLUME_CACHE_SIZE" ), "%d", &n_bytes ) == 1 )
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:254:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if( getenv( "VOLUME_CACHE_BLOCK_SIZE" ) == NULL ||
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:255:21:  [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.
            sscanf( getenv( "VOLUME_CACHE_BLOCK_SIZE" ), "%d", &block_size )
data/libminc-2.4.03/volume_io/Volumes/volume_cache.c:1565:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    debug = getenv( "VOLUME_CACHE_DEBUG" );
data/libminc-2.4.03/ezminc/examples/create_grid_file.cpp:123:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    wrt_vec.open(output.c_str(),output_info_grid,3,NC_FLOAT);
data/libminc-2.4.03/ezminc/examples/trilinear_resample.cpp:76: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).
    rdr.open(argv[optind],true);
data/libminc-2.4.03/ezminc/examples/trilinear_resample.cpp:118: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).
    wrt.open(argv[optind+1],new_info,2,NC_FLOAT);
data/libminc-2.4.03/ezminc/examples/volume_avg.cpp:97:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rdr1.open(argv[optind]);
data/libminc-2.4.03/ezminc/examples/volume_avg.cpp:114:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      rdr2.open(argv[optind+i]);
data/libminc-2.4.03/ezminc/examples/volume_avg.cpp:131: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).
    wrt.open(output.c_str(),rdr1.info(),2,NC_FLOAT);
data/libminc-2.4.03/ezminc/examples/volume_avg.cpp:137:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      wrt2.open(sd_f.c_str(),rdr1.info(),2,NC_FLOAT);
data/libminc-2.4.03/ezminc/examples/volume_msq_dist.cpp:31:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rdr1.open(argv[1]);
data/libminc-2.4.03/ezminc/examples/volume_msq_dist.cpp:34:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rdr2.open(argv[2]);
data/libminc-2.4.03/ezminc/examples/volume_msq_dist.cpp:37:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    rdr_m.open(argv[3]);
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_NC_NAME];
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:259: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 name[MAX_NC_NAME];
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:487:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void minc_1_reader::open(const char *path,bool positive_directions/*=true*/,bool metadate_only/*=false*/,bool rw/*=false*/)
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:542: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 dimname[MAX_NC_NAME];
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:693:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void minc_1_writer::open(const char *path,const minc_info& inf,int slice_dimensions,nc_type datatype,int _s)
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:797:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void minc_1_writer::open(const char *path,const minc_1_base& imitate)
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:800:5:  [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).
    open(path,imitate.info(),imitate.slice_dimensions(), 
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:806:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void minc_1_writer::open(const char *path,const char *imitate_file)
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:810: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).
    rdr.open(imitate_file,false,true);
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:811:5:  [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).
    open(path,rdr);
data/libminc-2.4.03/ezminc/minc_1_rw.h:70: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 _dimension_names[MAX_VAR_DIMS][MAX_NC_NAME];
data/libminc-2.4.03/ezminc/minc_1_rw.h:361:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(const char *path,bool positive_directions=false,bool metadate_only=false,bool rw=false);
data/libminc-2.4.03/ezminc/minc_1_rw.h:396:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      void open(const char *path,const minc_info& inf,int slice_dimensions,nc_type datatype,int is_signed=0);
data/libminc-2.4.03/ezminc/minc_1_rw.h:401:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      void open(const char *path,const minc_1_base& imitate);
data/libminc-2.4.03/ezminc/minc_1_rw.h:406:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      void open(const char *path,const char *imitate_file);
data/libminc-2.4.03/ezminc/minc_1_simple_rw.h:244:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      rdr.open(file);
data/libminc-2.4.03/ezminc/minc_1_simple_rw.h:333:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      wrt.open(file,info,2,datatype,is_signed);
data/libminc-2.4.03/ezminc/tests/ezminc_rw_test.cpp:64:7:  [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).
  wrt.open(filename,info,slice_dim,datatype,is_signed);
data/libminc-2.4.03/ezminc/tests/ezminc_rw_test.cpp:93:7:  [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).
  rdr.open(filename);
data/libminc-2.4.03/ezminc/tests/ezminc_stats.cpp:19:7:  [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).
  rdr.open(filename);
data/libminc-2.4.03/ezminc/tests/minc_rw_test2.cpp:17: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).
    rdr.open(argv[1],true);
data/libminc-2.4.03/ezminc/tests/minc_rw_test2.cpp:30: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).
    wrt.open(argv[2],rdr.info(),3,NC_FLOAT,false);
data/libminc-2.4.03/ezminc/tests/minc_rw_test_4d.cpp:15: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).
    rdr.open(argv[1]);
data/libminc-2.4.03/ezminc/tests/minc_rw_test_simple.cpp:16: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).
    rdr.open(argv[1],true);
data/libminc-2.4.03/ezminc/tests/minc_rw_test_simple.cpp:24: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).
    wrt.open(argv[2],rdr.info(),3,NC_FLOAT,false);
data/libminc-2.4.03/libcommon/minc_config.c:50:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char        _CONFIG_VAL[MICFG_COUNT][_MICFG_MAX_STRING_LENGTH];
data/libminc-2.4.03/libcommon/minc_config.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[256];
data/libminc-2.4.03/libcommon/minc_config.c:70:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(path, "/.mincrc");
data/libminc-2.4.03/libcommon/minc_config.c:72:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fp = fopen(path, "r")) != NULL) {
data/libminc-2.4.03/libcommon/minc_config.c:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[_MICFG_MAX_STRING_LENGTH];
data/libminc-2.4.03/libcommon/minc_config.c:135: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).
  return atoi(_var) != 0;
data/libminc-2.4.03/libcommon/minc_config.c:141: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).
  return atoi(_var);
data/libminc-2.4.03/libcommon/minc_error.c:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char prog[128];
data/libminc-2.4.03/libcommon/minc_error.c:303:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prog[128];
data/libminc-2.4.03/libcommon/minc_error.c:322:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    _MI_log.fp = fopen(fname_str + 1, "w+");
data/libminc-2.4.03/libcommon/minc_error.c:325:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    _MI_log.fp = fopen(fname_str, "w");
data/libminc-2.4.03/libcommon/read_file_names.c:36:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char line[FILE_PATH_MAX+1];
data/libminc-2.4.03/libcommon/read_file_names.c:44: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).
      fp = fopen(filelist, "r");
data/libminc-2.4.03/libcommon/restructure.c:144:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(temp, array + (offset_start * el_size), el_size);
data/libminc-2.4.03/libcommon/restructure.c:214:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(array + (offset * el_size),
data/libminc-2.4.03/libcommon/restructure.c:231:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(array + (offset * el_size), temp, el_size);
data/libminc-2.4.03/libsrc/dim_conversion.c:211:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME]; /* Dimensions name */
data/libminc-2.4.03/libsrc/dim_conversion.c:289:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME]; /* Dimensions name */
data/libminc-2.4.03/libsrc/dim_conversion.c:755:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ovecptr[idim] = (void *)((char *)ovecptr[idim]+dcp->ostep[idim]);
data/libminc-2.4.03/libsrc/dim_conversion.c:756:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ivecptr[idim] = (void *)((char *)ivecptr[idim]+dcp->istep[idim]);
data/libminc-2.4.03/libsrc/hdf_convenience.c:26: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 name[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:27:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:43: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 name[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:279:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char *dimnms[MI2_STD_DIM_COUNT] = {
data/libminc-2.4.03/libsrc/hdf_convenience.c:314: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(varpath, "/minc-2.0/image/%d/", file->resolution);
data/libminc-2.4.03/libsrc/hdf_convenience.c:317: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(varpath, "/minc-2.0/dimensions/");
data/libminc-2.4.03/libsrc/hdf_convenience.c:320: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(varpath, "/minc-2.0/info/");
data/libminc-2.4.03/libsrc/hdf_convenience.c:607:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str_buf[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:649: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[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:1099:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char temp[128];
data/libminc-2.4.03/libsrc/hdf_convenience.c:1102:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "junkXXXX");
data/libminc-2.4.03/libsrc/hdf_convenience.c:1279: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 varpath[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:2139: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 temp[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/hdf_convenience.c:2140: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 tpath[NC_MAX_NAME];
data/libminc-2.4.03/libsrc/image_conversion.c:1020:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char stringa[MI_MAX_ATTSTR_LEN];
data/libminc-2.4.03/libsrc/minc_convenience.c:199:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char attstr[MI_MAX_ATTSTR_LEN];
data/libminc-2.4.03/libsrc/minc_convenience.c:632:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char pointer_string[MAX_NC_NAME+sizeof(MI_VARATT_POINTER_PREFIX)];
data/libminc-2.4.03/libsrc/minc_convenience.c:679:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char pointer_string[MAX_NC_NAME+sizeof(MI_VARATT_POINTER_PREFIX)];
data/libminc-2.4.03/libsrc/minc_convenience.c:974:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char string[MAX_NC_NAME]; /* String for dimension name */
data/libminc-2.4.03/libsrc/minc_convenience.c:1182:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME];
data/libminc-2.4.03/libsrc/minc_convenience.c:1484:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host_str[128];
data/libminc-2.4.03/libsrc/minc_convenience.c:1485: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 user_str[128];
data/libminc-2.4.03/libsrc/minc_convenience.c:1487:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char time_str[26];
data/libminc-2.4.03/libsrc/minc_convenience.c:1491: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(host_str, "unknown");
data/libminc-2.4.03/libsrc/minc_convenience.c:1499: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(user_str, "nobody");
data/libminc-2.4.03/libsrc/minc_simple.c:62: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 att_name[128];
data/libminc-2.4.03/libsrc/minc_simple.c:69: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 var_name[128];
data/libminc-2.4.03/libsrc/minc_simple.c:959: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 dimname[128];
data/libminc-2.4.03/libsrc/netcdf_convenience.c:246:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char whole_command[1024];
data/libminc-2.4.03/libsrc/netcdf_convenience.c:351: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).
      fp = fopen(path, "r");
data/libminc-2.4.03/libsrc/netcdf_convenience.c:384: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).
         fp = fopen(compfile, "r");
data/libminc-2.4.03/libsrc/netcdf_convenience.c:463:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char magic[4];
data/libminc-2.4.03/libsrc/netcdf_convenience.c:465: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 *fp = fopen(filename, "rb");
data/libminc-2.4.03/libsrc/netcdf_convenience.c:622: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 ident[128];
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1314:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[MAX_NC_NAME];   /* Name of attribute */
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1394:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char varname[MAX_NC_NAME]; /* Name of variable */
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1395:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME]; /* Name of dimension */
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1728:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[MAX_NC_NAME]; /*Variable name */
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1821:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  tmp_fd = mkstemp(tmpfile_ptr); /* Creates the file if possible. */
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1834:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tmp_fd = open(tmpfile_ptr, O_CREAT | O_EXCL | O_RDWR, S_IWRITE | S_IREAD);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1852:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tmp_fd = open(tmpfile_ptr, O_CREAT | O_EXCL | O_RDWR, S_IWRITE | S_IREAD);
data/libminc-2.4.03/libsrc/value_conversion.c:167:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char stringa[MI_MAX_ATTSTR_LEN];  /* String for attribute value */
data/libminc-2.4.03/libsrc/value_conversion.c:621:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         (void) memcpy(outvalues, invalues, 
data/libminc-2.4.03/libsrc/voxel_loop.c:554:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char first_dimname[MAX_VAR_DIMS][MAX_NC_NAME];
data/libminc-2.4.03/libsrc/voxel_loop.c:555:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_VAR_DIMS][MAX_NC_NAME];
data/libminc-2.4.03/libsrc/voxel_loop.c:714:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME];
data/libminc-2.4.03/libsrc/voxel_loop.c:788:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char string[MAX_NC_NAME];
data/libminc-2.4.03/libsrc/voxel_loop.c:798:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char regstring[MI_MAX_ATTSTR_LEN];
data/libminc-2.4.03/libsrc/voxel_loop.c:907:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME];
data/libminc-2.4.03/libsrc/voxel_loop.c:955:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dimname[MAX_NC_NAME + 1];
data/libminc-2.4.03/libsrc2/grpattr.c:26: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 relpath[MILIST_MAX_PATH];
data/libminc-2.4.03/libsrc2/grpattr.c:79: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:153:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmp[256];
data/libminc-2.4.03/libsrc2/grpattr.c:300: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:301:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmp[256];
data/libminc-2.4.03/libsrc2/grpattr.c:345: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:404: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:452: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:503: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:591: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:666: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 namebuf[256];
data/libminc-2.4.03/libsrc2/grpattr.c:667: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 pathbuf[256];
data/libminc-2.4.03/libsrc2/grpattr.c:668: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 valstr[128];
data/libminc-2.4.03/libsrc2/grpattr.c:762: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 fullpath[256];
data/libminc-2.4.03/libsrc2/grpattr.c:853: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 * ) values ) [hdf_attr_size] = '\0';
data/libminc-2.4.03/libsrc2/grpattr.c:885: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 fullpath[256];
data/libminc-2.4.03/libsrc2/hyper.c:190:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/hyper.c:294:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(temp_buffer,buffer,buffer_size);
data/libminc-2.4.03/libsrc2/hyper.c:395:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/hyper.c:691:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(temp_buffer,buffer,buffer_size);
data/libminc-2.4.03/libsrc2/hyper.c:878:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/hyper.c:1132: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(temp_buffer2,buffer,input_buffer_size);
data/libminc-2.4.03/libsrc2/m2util.c:480: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 * ) values ) [alength] = '\0';
data/libminc-2.4.03/libsrc2/m2util.c:522: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 dimname[MI2_MAX_DIM_NAME];
data/libminc-2.4.03/libsrc2/m2util.c:1441:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/m2util.c:1664:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/m2util.c:1694: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 ( path, "%d/image", igrp );
data/libminc-2.4.03/libsrc2/m2util.c:1730: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 ( path, "%d/image", ogrp );
data/libminc-2.4.03/libsrc2/m2util.c:1756: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 ( path, "%d/image-max", ogrp );
data/libminc-2.4.03/libsrc2/m2util.c:1766: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 ( path, "%d/image-min", ogrp );
data/libminc-2.4.03/libsrc2/m2util.c:1879:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/m2util.c:1899: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).
    grp_no = atoi ( name );
data/libminc-2.4.03/libsrc2/volprops.c:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[MI2_CHAR_LENGTH];
data/libminc-2.4.03/libsrc2/volprops.c:245:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/volprops.c:272: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(path, "%d/image", depth);
data/libminc-2.4.03/libsrc2/volprops.c:279: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(path, "%d/image-max", depth);
data/libminc-2.4.03/libsrc2/volprops.c:285: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(path, "%d/image-min", depth);
data/libminc-2.4.03/libsrc2/volume.c:67: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 host_str[128];
data/libminc-2.4.03/libsrc2/volume.c:68: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 user_str[128];
data/libminc-2.4.03/libsrc2/volume.c:70: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 time_str[26];
data/libminc-2.4.03/libsrc2/volume.c:75: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(host_str, "unknown");
data/libminc-2.4.03/libsrc2/volume.c:78:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(host_str, "unknown");
data/libminc-2.4.03/libsrc2/volume.c:87:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(user_str, "nobody");
data/libminc-2.4.03/libsrc2/volume.c:278: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 dimorder[MI2_CHAR_LENGTH];
data/libminc-2.4.03/libsrc2/volume.c:474:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ident_str[128];
data/libminc-2.4.03/libsrc2/volume.c:758:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(name, "-width");
data/libminc-2.4.03/libsrc2/volume.c:1043:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_MAX_PATH];
data/libminc-2.4.03/libsrc2/volume.c:1131: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 class_buf[MI2_CHAR_LENGTH];
data/libminc-2.4.03/libsrc2/volume.c:1162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_CHAR_LENGTH];
data/libminc-2.4.03/libsrc2/volume.c:1210:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[MI2_CHAR_LENGTH];
data/libminc-2.4.03/libsrc2/volume.c:1211: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 temp[MI2_CHAR_LENGTH];
data/libminc-2.4.03/libsrc2/volume.c:1333: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 dimorder[MI2_CHAR_LENGTH];
data/libminc-2.4.03/nifti/nifti1.h:149: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  data_type[10]; /*!< ++UNUSED++            */  /* char data_type[10];  */
data/libminc-2.4.03/nifti/nifti1.h:150: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  db_name[18];   /*!< ++UNUSED++            */  /* char db_name[18];    */
data/libminc-2.4.03/nifti/nifti1.h:183: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  descrip[80];   /*!< any text you like.    */  /* char descrip[80];    */
data/libminc-2.4.03/nifti/nifti1.h:184: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  aux_file[24];  /*!< auxiliary filename.   */  /* char aux_file[24];   */
data/libminc-2.4.03/nifti/nifti1.h:200: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 intent_name[16];/*!< 'name' or meaning of data.  */
data/libminc-2.4.03/nifti/nifti1.h:202: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 magic[4] ;      /*!< MUST be "ni1\0" or "n+1\0". */
data/libminc-2.4.03/nifti/nifti1.h:287:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
struct nifti1_extender { char extension[4] ; } ;
data/libminc-2.4.03/nifti/nifti1_io.c:878:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(NBL->bricks[idest], NBL->bricks[sindex[c-1]], NBL->bsize);
data/libminc-2.4.03/nifti/nifti1_io.c:968:4:  [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(*slist, blist, nbricks*sizeof(int));
data/libminc-2.4.03/nifti/nifti1_io.c:2589:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extcopy[MAX_EXT_LEN + 1];
data/libminc-2.4.03/nifti/nifti1_io.c:2591:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extnii[MAX_EXT_LEN + 1] = ".nii"; /* modifiable, for possible uppercase */
data/libminc-2.4.03/nifti/nifti1_io.c:2592:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   exthdr[MAX_EXT_LEN + 1] = ".hdr"; /* (leave space for .gz) */
data/libminc-2.4.03/nifti/nifti1_io.c:2593:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extimg[MAX_EXT_LEN + 1] = ".img";
data/libminc-2.4.03/nifti/nifti1_io.c:2594:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extnia[MAX_EXT_LEN + 1] = ".nia";
data/libminc-2.4.03/nifti/nifti1_io.c:2598:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char * elist[NUM_EXT]  = { NULL, NULL, NULL, NULL};
data/libminc-2.4.03/nifti/nifti1_io.c:2748:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  elist[2][5] = { ".hdr", ".nii" };
data/libminc-2.4.03/nifti/nifti1_io.c:2749:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  extzip[4]   = ".gz";
data/libminc-2.4.03/nifti/nifti1_io.c:2847:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char *basename, *imgname, elist[2][5] = { ".nii", ".img" };
data/libminc-2.4.03/nifti/nifti1_io.c:2848:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  extzip[4] = ".gz";
data/libminc-2.4.03/nifti/nifti1_io.c:2849:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  extnia[5] = ".nia";
data/libminc-2.4.03/nifti/nifti1_io.c:2934:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extnii[5] = ".nii";   /* modifiable, for possible uppercase */
data/libminc-2.4.03/nifti/nifti1_io.c:2935:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   exthdr[5] = ".hdr";
data/libminc-2.4.03/nifti/nifti1_io.c:2936:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extimg[5] = ".img";
data/libminc-2.4.03/nifti/nifti1_io.c:2937:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extnia[5] = ".nia";
data/libminc-2.4.03/nifti/nifti1_io.c:2938:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extgz[5]  = ".gz";
data/libminc-2.4.03/nifti/nifti1_io.c:2959:10:  [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(&iname[ext-iname],exthdr,MIN_EXT_LEN); /* then convert img name to hdr */
data/libminc-2.4.03/nifti/nifti1_io.c:3002:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extnii[5] = ".nii";   /* modifiable, for possible uppercase */
data/libminc-2.4.03/nifti/nifti1_io.c:3003:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   exthdr[5] = ".hdr";
data/libminc-2.4.03/nifti/nifti1_io.c:3004:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extimg[5] = ".img";
data/libminc-2.4.03/nifti/nifti1_io.c:3005:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extnia[5] = ".nia";
data/libminc-2.4.03/nifti/nifti1_io.c:3006:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   extgz[5]  = ".gz";
data/libminc-2.4.03/nifti/nifti1_io.c:3027:10:  [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(&iname[ext-iname],extimg,MIN_EXT_LEN); /* then convert hdr name to img */
data/libminc-2.4.03/nifti/nifti1_io.c:3215:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char caps[MAX_EXT_LEN + 1] = "";
data/libminc-2.4.03/nifti/nifti1_io.c:3241:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char caps[MAX_EXT_LEN + 1] = "";
data/libminc-2.4.03/nifti/nifti1_io.c:3838: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(nim->intent_name,nhdr.intent_name,15); nim->intent_name[15] = '\0';
data/libminc-2.4.03/nifti/nifti1_io.c:3858: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(nim->descrip ,nhdr.descrip ,79) ; nim->descrip [79] = '\0' ;
data/libminc-2.4.03/nifti/nifti1_io.c:3859: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(nim->aux_file,nhdr.aux_file,23) ; nim->aux_file[23] = '\0' ;
data/libminc-2.4.03/nifti/nifti1_io.c:4028:4:  [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(hptr, &nhdr, sizeof(nifti_1_header));
data/libminc-2.4.03/nifti/nifti1_io.c:4282:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char  buf[16];
data/libminc-2.4.03/nifti/nifti1_io.c:4312:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char        * sbuf, lfunc[25] = { "nifti_read_ascii_image" };
data/libminc-2.4.03/nifti/nifti1_io.c:4537:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(*list, tmplist, (new_length-1)*sizeof(nifti1_extension));
data/libminc-2.4.03/nifti/nifti1_io.c:4587:4:  [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(ext->edata, data, len);  /* copy the data, using len */
data/libminc-2.4.03/nifti/nifti1_io.c:5207:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char               extdr[4] = { 0, 0, 0, 0 };
data/libminc-2.4.03/nifti/nifti1_io.c:5289:4:  [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(nhdr.magic, "n+1");  /* init to single file */
data/libminc-2.4.03/nifti/nifti1_io.c:5370:4:  [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(nhdr->magic, "n+1");  /* init to single file */
data/libminc-2.4.03/nifti/nifti1_io.c:5469: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(nhdr.descrip ,nim->descrip ,79) ; nhdr.descrip[79] = '\0' ;
data/libminc-2.4.03/nifti/nifti1_io.c:5472: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(nhdr.aux_file ,nim->aux_file ,23) ; nhdr.aux_file[23] = '\0' ;
data/libminc-2.4.03/nifti/nifti1_io.c:5479:52:  [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.
     if( nim->nifti_type == NIFTI_FTYPE_NIFTI1_1 ) strcpy(nhdr.magic,"n+1") ;
data/libminc-2.4.03/nifti/nifti1_io.c:5480:52:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
     else                                          strcpy(nhdr.magic,"ni1") ;
data/libminc-2.4.03/nifti/nifti1_io.c:5492:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       memcpy(nhdr.intent_name,nim->intent_name,15) ;
data/libminc-2.4.03/nifti/nifti1_io.c:5593:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, nim_src->ext_list[c].edata, old_size-8);
data/libminc-2.4.03/nifti/nifti1_io.c:5919: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(dest, src, sizeof(nifti_image));
data/libminc-2.4.03/nifti/nifti1_io.c:6086:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case '&':  memcpy(out+jj,"&amp;",5)  ; jj+=5 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6088:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case '<':  memcpy(out+jj,"&lt;",4)   ; jj+=4 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6089:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case '>':  memcpy(out+jj,"&gt;",4)   ; jj+=4 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6091:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case '"' : memcpy(out+jj,"&quot;",6) ; jj+=6 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6093:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case '\'': memcpy(out+jj,"&apos;",6) ; jj+=6 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6095:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case CR:   memcpy(out+jj,"&#x0d;",6) ; jj+=6 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6096:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         case LF:   memcpy(out+jj,"&#x0a;",6) ; jj+=6 ; break ;
data/libminc-2.4.03/nifti/nifti1_io.c:6123:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf , "<nifti_image\n" ) ;   /* XML-ish opener */
data/libminc-2.4.03/nifti/nifti1_io.c:6144:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf+strlen(buf) , "  image_offset = '%d'\n" , nim->iname_offset );
data/libminc-2.4.03/nifti/nifti1_io.c:6146:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                       sprintf( buf+strlen(buf), "  ndim = '%d'\n", nim->ndim);
data/libminc-2.4.03/nifti/nifti1_io.c:6147:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                       sprintf( buf+strlen(buf), "  nx = '%d'\n",   nim->nx  );
data/libminc-2.4.03/nifti/nifti1_io.c:6148:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 1 ) sprintf( buf+strlen(buf), "  ny = '%d'\n",   nim->ny  );
data/libminc-2.4.03/nifti/nifti1_io.c:6149:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 2 ) sprintf( buf+strlen(buf), "  nz = '%d'\n",   nim->nz  );
data/libminc-2.4.03/nifti/nifti1_io.c:6150:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 3 ) sprintf( buf+strlen(buf), "  nt = '%d'\n",   nim->nt  );
data/libminc-2.4.03/nifti/nifti1_io.c:6151:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 4 ) sprintf( buf+strlen(buf), "  nu = '%d'\n",   nim->nu  );
data/libminc-2.4.03/nifti/nifti1_io.c:6152:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 5 ) sprintf( buf+strlen(buf), "  nv = '%d'\n",   nim->nv  );
data/libminc-2.4.03/nifti/nifti1_io.c:6153:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 6 ) sprintf( buf+strlen(buf), "  nw = '%d'\n",   nim->nw  );
data/libminc-2.4.03/nifti/nifti1_io.c:6154:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                       sprintf( buf+strlen(buf), "  dx = '%g'\n",   nim->dx  );
data/libminc-2.4.03/nifti/nifti1_io.c:6155:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 1 ) sprintf( buf+strlen(buf), "  dy = '%g'\n",   nim->dy  );
data/libminc-2.4.03/nifti/nifti1_io.c:6156:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 2 ) sprintf( buf+strlen(buf), "  dz = '%g'\n",   nim->dz  );
data/libminc-2.4.03/nifti/nifti1_io.c:6157:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 3 ) sprintf( buf+strlen(buf), "  dt = '%g'\n",   nim->dt  );
data/libminc-2.4.03/nifti/nifti1_io.c:6158:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 4 ) sprintf( buf+strlen(buf), "  du = '%g'\n",   nim->du  );
data/libminc-2.4.03/nifti/nifti1_io.c:6159:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 5 ) sprintf( buf+strlen(buf), "  dv = '%g'\n",   nim->dv  );
data/libminc-2.4.03/nifti/nifti1_io.c:6160:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   if( nim->ndim > 6 ) sprintf( buf+strlen(buf), "  dw = '%g'\n",   nim->dw  );
data/libminc-2.4.03/nifti/nifti1_io.c:6162:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf+strlen(buf) , "  datatype = '%d'\n" , nim->datatype ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6166:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf+strlen(buf) , "  nvox = '%u'\n" , (unsigned)nim->nvox ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6167:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf+strlen(buf) , "  nbyper = '%d'\n" , nim->nbyper ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6173:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  cal_min = '%g'\n", nim->cal_min ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6174:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  cal_max = '%g'\n", nim->cal_max ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6178:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  scl_slope = '%g'\n" , nim->scl_slope ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6179:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  scl_inter = '%g'\n" , nim->scl_inter ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6183:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  intent_code = '%d'\n", nim->intent_code ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6186:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  intent_p1 = '%g'\n" , nim->intent_p1 ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6187:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  intent_p2 = '%g'\n" , nim->intent_p2 ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6188:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  intent_p3 = '%g'\n" , nim->intent_p3 ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6198:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  toffset = '%g'\n",nim->toffset ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6213:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  freq_dim = '%d'\n",nim->freq_dim ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6215:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  phase_dim = '%d'\n",nim->phase_dim ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6217:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  slice_dim = '%d'\n",nim->slice_dim ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6224:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6228:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) , "  slice_duration = '%g'\n",
data/libminc-2.4.03/nifti/nifti1_io.c:6260:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6271:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6310:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6332:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf+strlen(buf) , "  num_ext = '%d'\n", nim->num_ext ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6334:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf( buf+strlen(buf) , "/>\n" ) ;   /* XML-ish closer */
data/libminc-2.4.03/nifti/nifti1_io.c:6352:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   union { unsigned char bb[2] ;
data/libminc-2.4.03/nifti/nifti1_io.c:6392:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char lhs[1024] , rhs[1024] ;
data/libminc-2.4.03/nifti/nifti1_io.c:6446: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(rhs,str+spos+1,nn) ; rhs[nn] = '\0' ;
data/libminc-2.4.03/nifti/nifti1_io.h:154: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  intent_name[16] ;       /*!< optional description of intent data */
data/libminc-2.4.03/nifti/nifti1_io.h:156: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 descrip[80]  ;           /*!< optional text to describe dataset   */
data/libminc-2.4.03/nifti/nifti1_io.h:157: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 aux_file[24] ;           /*!< auxiliary filename                  */
data/libminc-2.4.03/nifti/nifti1_io.h:191:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char data_type[10];              /* 4 + 10       same              */
data/libminc-2.4.03/nifti/nifti1_io.h:192:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char db_name[18];                /* 14 + 18      same              */
data/libminc-2.4.03/nifti/nifti1_io.h:225:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char descrip[80];                /* 0 + 80       same              */
data/libminc-2.4.03/nifti/nifti1_io.h:226:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char aux_file[24];               /* 80 + 24      same              */
data/libminc-2.4.03/nifti/nifti1_io.h:228:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char originator[10];             /* 105 + 10     FROM HERE DOWN... */
data/libminc-2.4.03/nifti/nifti1_io.h:229:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char generated[10];              /* 115 + 10                       */
data/libminc-2.4.03/nifti/nifti1_io.h:230:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char scannum[10];                /* 125 + 10                       */
data/libminc-2.4.03/nifti/nifti1_io.h:231:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char patient_id[10];             /* 135 + 10                       */
data/libminc-2.4.03/nifti/nifti1_io.h:232:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char exp_date[10];               /* 145 + 10                       */
data/libminc-2.4.03/nifti/nifti1_io.h:233:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char exp_time[10];               /* 155 + 10                       */
data/libminc-2.4.03/nifti/nifti1_io.h:234:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char hist_un0[3];                /* 165 + 3                        */
data/libminc-2.4.03/nifti/znzlib.c:71:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((file->nzfptr = fopen(path,mode)) == NULL) {
data/libminc-2.4.03/testdir/icv.c:53:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/icv_dim.c:55:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/icv_dim1.c:55:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/icv_fillvalue.c:46:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/icv_range.c:54:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/icv_vec.c:68: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[256];
data/libminc-2.4.03/testdir/minc.c:39:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/minc.c:40:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename2[256];
data/libminc-2.4.03/testdir/minc2-full-test.c:22:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp1[128];
data/libminc-2.4.03/testdir/minc2-full-test.c:23: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 temp2[128];
data/libminc-2.4.03/testdir/minc2-grpattr-test.c:26: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 valstr[128]="";
data/libminc-2.4.03/testdir/minc2-grpattr-test.c:30: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 pathbuf[256]="";
data/libminc-2.4.03/testdir/minc2-grpattr-test.c:31: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 namebuf[256]="";
data/libminc-2.4.03/testdir/minc2-grpattr-test.c:32: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 pathbuf1[1024]="";
data/libminc-2.4.03/testdir/minc2-hyper-test.c:308: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 btemp[CZ][CX][CY];
data/libminc-2.4.03/testdir/minc2-large-attribute.c:109:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    attribute_size=atoi(argv[1]);
data/libminc-2.4.03/testdir/minc2-leak-test.c:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1024];
data/libminc-2.4.03/testdir/minc2-leak-test.c:200:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *dimnames[N_DIMS] = {"zspace", "yspace", "xspace"};
data/libminc-2.4.03/testdir/minc2-leak-test.c:273: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/libminc-2.4.03/testdir/minc2-m2stats.c:500: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).
      FP = fopen(hist_file, "w");
data/libminc-2.4.03/testdir/minc2-m2stats.c:756:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char     str[100];
data/libminc-2.4.03/testdir/minc2-m2stats.c:758:22:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
               (void)sprintf(str, "PctT [%3d%%]:       ", (int)(pctT * 100));
data/libminc-2.4.03/testdir/minc2-m2stats.c:1065:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char    *spatial_codes[WORLD_NDIMS] = { "x", "y", "z" }; /* In x,y,z order */
data/libminc-2.4.03/testdir/minc2-read-metadata.c:30: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 group_name[256];
data/libminc-2.4.03/testdir/minc2-read-metadata.c:38: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 add_path[256];
data/libminc-2.4.03/testdir/minc2-read-metadata.c:53: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 int_path[256];
data/libminc-2.4.03/testdir/minc2-read-metadata.c:54: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 attribute[256];
data/libminc-2.4.03/testdir/minc_long_attr.c:277:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    info.attribute_size=atoi(argv[1]);
data/libminc-2.4.03/testdir/minc_types.c:61:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/nifti_test.c:93: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(reference_header.intent_name,"TEST_DATA_STRING",16);
data/libminc-2.4.03/testdir/nifti_test.c:94: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(reference_header.descrip,"01234567890123456789012345678901234567890123456789012345678901234567890123456789",80);
data/libminc-2.4.03/testdir/nifti_test.c:167:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char TEMP_STR[256];
data/libminc-2.4.03/testdir/nifti_test.c:170: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).
    level = atoi(*++argv);
data/libminc-2.4.03/testdir/nifti_test.c:184:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char write_image_filename[6][64]={
data/libminc-2.4.03/testdir/nifti_test.c: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 buf[512];
data/libminc-2.4.03/testdir/nifti_test.c:355:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char * FILE_NAMES[NUM_FILE_NAMES]={
data/libminc-2.4.03/testdir/nifti_test.c:365:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char * KNOWN_FILE_BASENAMES[NUM_FILE_NAMES]={
data/libminc-2.4.03/testdir/nifti_test.c:443:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];                                                         \
data/libminc-2.4.03/testdir/nifti_test.c:470:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];                                         \
data/libminc-2.4.03/testdir/nifti_test.c:471:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,"nifti_datatype_string %d",constant);     \
data/libminc-2.4.03/testdir/nifti_test.c:497:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];                                                 \
data/libminc-2.4.03/testdir/nifti_test.c: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[64];                                                 \
data/libminc-2.4.03/testdir/nifti_test.c:562:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];                                                 \
data/libminc-2.4.03/testdir/nifti_test.c:578:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];                                                         \
data/libminc-2.4.03/testdir/nifti_test.c:597:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];                                                 \
data/libminc-2.4.03/testdir/nifti_test.c:598:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,"nifti_datatype_sizes_test %d",constant);         \
data/libminc-2.4.03/testdir/nifti_test.c:652:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char x[16] = { 'a','b','c','d','e','f','g','h',
data/libminc-2.4.03/testdir/nifti_test.c:664:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char x[8] = { 'a','b','c','d','D','C','B','A' };
data/libminc-2.4.03/testdir/test_mconv.c:19:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[256];
data/libminc-2.4.03/testdir/test_speed.c:219: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).
   xsize=atoi(argv[2]);
data/libminc-2.4.03/testdir/test_speed.c:220: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).
   ysize=atoi(argv[3]);
data/libminc-2.4.03/testdir/test_xfm.c:55:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    N = atoi( av[1] );
data/libminc-2.4.03/testdir/vio_xfm_test/test-xfm.c:72:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    N = atoi( av[1] );
data/libminc-2.4.03/testdir/vio_xfm_test/verify_xfm.c:61: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).
    if(!(in=fopen(av[2],"r")))
data/libminc-2.4.03/testdir/vio_xfm_test/verify_xfm.c:75: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_c[1024];
data/libminc-2.4.03/testdir/vio_xfm_test/verify_xfm.c:102:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(line_c,"Line:%d Fwd ",line);
data/libminc-2.4.03/testdir/vio_xfm_test/verify_xfm.c:105:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(line_c,"Line:%d Inv ",line);
data/libminc-2.4.03/volume_io/Include/volume_io/string_funcs.h:39:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         (void) memcpy( (void *) (dest), (void *) (src),                    \
data/libminc-2.4.03/volume_io/MNI_formats/gen_xfs.c:377:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy( transform->user_data, user_data, size_user_data );
data/libminc-2.4.03/volume_io/MNI_formats/gen_xfs.c:886:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void) memcpy( copy->user_data, transform->user_data,
data/libminc-2.4.03/volume_io/Prog_utils/alloc_check.c:907:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                file = fopen( filename, "w" );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:142: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).
    file = fopen( expanded, "r" );
data/libminc-2.4.03/volume_io/Prog_utils/files.c:880:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  tmp_fd = mkstemp(tmpfile_ptr); /* Creates the file if possible. */
data/libminc-2.4.03/volume_io/Prog_utils/files.c:893:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tmp_fd = open(tmpfile_ptr, O_CREAT | O_EXCL | O_RDWR, S_IWRITE | S_IREAD);
data/libminc-2.4.03/volume_io/Prog_utils/files.c:911:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  tmp_fd = open(tmpfile_ptr, O_CREAT | O_EXCL | O_RDWR, S_IWRITE | S_IREAD);
data/libminc-2.4.03/volume_io/Prog_utils/files.c:954:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     command[VIO_EXTREMELY_LARGE_STRING_SIZE];
data/libminc-2.4.03/volume_io/Prog_utils/files.c:1042:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        *file = fopen( expanded, access_str );
data/libminc-2.4.03/volume_io/Prog_utils/print.c:120: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     print_buffer[VIO_EXTREMELY_LARGE_STRING_SIZE];
data/libminc-2.4.03/volume_io/Prog_utils/print.c:219: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     print_buffer[VIO_EXTREMELY_LARGE_STRING_SIZE];
data/libminc-2.4.03/volume_io/Prog_utils/time.c:181:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char     buffer[VIO_EXTREMELY_LARGE_STRING_SIZE];
data/libminc-2.4.03/volume_io/Volumes/input_mgh.c:251: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 dummy[MGH_HEADER_SIZE];
data/libminc-2.4.03/volume_io/Volumes/input_mgh.c:363:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        value = ((unsigned char *)data_ptr)[i];
data/libminc-2.4.03/volume_io/Volumes/input_mgh.c:720:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            value = ((unsigned char *)data_ptr)[data_ind++];
data/libminc-2.4.03/volume_io/Volumes/input_mnc.c:117: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                signed_flag[MI_MAX_ATTSTR_LEN+1], *ptr;
data/libminc-2.4.03/volume_io/Volumes/input_mnc.c:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                dim_name[MI_MAX_ATTSTR_LEN+1];
data/libminc-2.4.03/volume_io/Volumes/input_mnc.c:119: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                prev_space_type[MI_MAX_ATTSTR_LEN+1];
data/libminc-2.4.03/volume_io/Volumes/input_mnc.c:120: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                space_type[MI_MAX_ATTSTR_LEN+1];
data/libminc-2.4.03/volume_io/Volumes/input_mnc.c: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                spacing_type[MI_MAX_ATTSTR_LEN+1];
data/libminc-2.4.03/volume_io/Volumes/input_mnc2.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                prev_space_type[MI_MAX_ATTSTR_LEN+1];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:80:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        tmp = (double) ((char *)data)[j];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:83:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        tmp = (double) ((unsigned char *)data)[j];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:682:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          value = ((unsigned char *) data_ptr)[data_ind++];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:690:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          value = ((signed char *) data_ptr)[data_ind++];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:765:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char r = ((unsigned char *)data_ptr)[data_ind + (n * 0)];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:766:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char g = ((unsigned char *)data_ptr)[data_ind + (n * 1)];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:767:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char b = ((unsigned char *)data_ptr)[data_ind + (n * 2)];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:773:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char r = ((unsigned char *)data_ptr)[data_ind + 0];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:774:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char g = ((unsigned char *)data_ptr)[data_ind + 1];
data/libminc-2.4.03/volume_io/Volumes/input_nifti.c:775:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char b = ((unsigned char *)data_ptr)[data_ind + 2];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:130: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 data_file[NRRD_MAX_PATH+1];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c: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 *labels[NRRD_MAX_DIMS];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:738:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c[2];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:788:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((unsigned char *) data_ptr)[i] = uvalue;
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:792:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          ((signed char *) data_ptr)[i] = ivalue;
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:926: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 buffer[4096];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:999: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[NRRD_MAX_LINE + 1];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1559: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).
  if ((fp = fopen(filename, "rb")) == NULL)
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1579: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 pathname[NRRD_MAX_PATH];
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1590: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(pathname, filename, n_chars);
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1600:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(pathname, "rb");
data/libminc-2.4.03/volume_io/Volumes/multidim_arrays.c:640:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        (void) memcpy( dest_ptr, src_ptr, (size_t) type_size );
data/libminc-2.4.03/volume_io/Volumes/volumes.c:2758:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        (void) memcpy( dst, src, (size_t) n_voxels *
data/libminc-2.4.03/volume_io/Volumes/volumes.c:2773:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                value = ((signed char *) src)[i];
data/libminc-2.4.03/volume_io/Volumes/volumes.c:2777:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                value = ((unsigned char *) src)[i];
data/libminc-2.4.03/volume_io/Volumes/volumes.c:2819:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                ((signed char *) dst)[i] = value;
data/libminc-2.4.03/volume_io/Volumes/volumes.c:2823:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                ((unsigned char *) dst)[i] = value;
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:1292:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void minc_1_reader::read(void* buffer)
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:1459:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    att_length += strlen(append_history) + 1;
data/libminc-2.4.03/ezminc/minc_1_rw.cpp:1488:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ncattput(_mincid, create_var_id(varname),attname, NC_CHAR, strlen(val) + 1, val);
data/libminc-2.4.03/ezminc/minc_1_rw.h:364:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(void* slice);
data/libminc-2.4.03/ezminc/minc_1_simple.h:84:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          _rw->read(&_buf[0]);
data/libminc-2.4.03/ezminc/minc_1_simple.h:104:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      _rw->read(&_buf[0]);
data/libminc-2.4.03/libcommon/ParseArgv.c:173:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length = strlen(curArg);
data/libminc-2.4.03/libcommon/ParseArgv.c:418: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).
         length = (int) strlen(infoPtr->key);
data/libminc-2.4.03/libcommon/ParseArgv.c:439: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).
         numSpaces = width + 1 - strlen(infoPtr->key);
data/libminc-2.4.03/libcommon/minc_config.c:65:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(path, home_ptr, sizeof(path) - 1);
data/libminc-2.4.03/libcommon/minc_config.c:77:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strncasecmp(buffer, name, strlen(name))) {
data/libminc-2.4.03/libcommon/minc_config.c:84:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(buffer, tmp, maxlen);
data/libminc-2.4.03/libcommon/minc_config.c:106:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, var_ptr, _MICFG_MAX_STRING_LENGTH - 1);
data/libminc-2.4.03/libcommon/minc_config.c:116:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_CONFIG_VAL[id],buffer,_MICFG_MAX_STRING_LENGTH-1);
data/libminc-2.4.03/libcommon/minc_error.c:314:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(fname_str)) {
data/libminc-2.4.03/libcommon/minc_error.c:333:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_MI_log.prog, name, sizeof(_MI_log.prog) - 1 );
data/libminc-2.4.03/libcommon/read_file_names.c:66:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      length = strlen(line);
data/libminc-2.4.03/libcommon/time_stamp.c:112:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length=strlen(the_time) + strlen(separator) + 2;
data/libminc-2.4.03/libcommon/time_stamp.c:112:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length=strlen(the_time) + strlen(separator) + 2;
data/libminc-2.4.03/libcommon/time_stamp.c:114: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).
      length += strlen(argv[i]) + 1;
data/libminc-2.4.03/libcommon/time_stamp.c:122:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   str[strlen(str)-1]='\0';
data/libminc-2.4.03/libcommon/time_stamp.c:127:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      last = strlen(str);
data/libminc-2.4.03/libcommon/time_stamp.c:139:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   last = strlen(str);
data/libminc-2.4.03/libsrc/hdf_convenience.c:193:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(new->name, name, NC_MAX_NAME - 1);
data/libminc-2.4.03/libsrc/hdf_convenience.c:194:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(new->path, path, NC_MAX_NAME - 1);
data/libminc-2.4.03/libsrc/hdf_convenience.c:263:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new->name, name, NC_MAX_NAME - 1);
data/libminc-2.4.03/libsrc/hdf_convenience.c:621:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(str_buf, ",");
data/libminc-2.4.03/libsrc/hdf_convenience.c:626: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).
    H5Tset_size(typ_id, strlen(str_buf) + 1);
data/libminc-2.4.03/libsrc/hdf_convenience.c:2155:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(tpath, "/");
data/libminc-2.4.03/libsrc/minc_convenience.c:638:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   index=strlen(strcpy(pointer_string,MI_VARATT_POINTER_PREFIX));
data/libminc-2.4.03/libsrc/minc_convenience.c:744: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).
                            strlen(MI_CHILD_SEPARATOR), char)) == NULL) {
data/libminc-2.4.03/libsrc/minc_convenience.c:746:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     child_list_size+MAX_NC_NAME+strlen(MI_CHILD_SEPARATOR));
data/libminc-2.4.03/libsrc/minc_convenience.c:765:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      child_list_size += strlen(MI_CHILD_SEPARATOR);
data/libminc-2.4.03/libsrc/minc_convenience.c:780:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      child_list_size -= strlen(MI_CHILD_SEPARATOR);
data/libminc-2.4.03/libsrc/minc_convenience.c:1378: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).
    att_val = malloc(att_len + strlen(tm_stamp) + 2);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:363: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).
      extension = &path[strlen(path)];
data/libminc-2.4.03/libsrc/netcdf_convenience.c:380: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).
      compfile = MALLOC(strlen(path) + max_compression_code_length + 2, char);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:945:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   (void) strncpy(value, att_value, (size_t) maxlen-1);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1033: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).
                       strlen(value) + 1, value);
data/libminc-2.4.03/libsrc/netcdf_convenience.c:1815: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).
  tmpfile_ptr = malloc(strlen(tmpdir_ptr) + sizeof (pat_str));
data/libminc-2.4.03/libsrc/strdup.c:47:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   length = strlen(string);
data/libminc-2.4.03/libsrc/voxel_loop.c:1052:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         (void) strncpy(dimname, loop_options->loop_dimension, MAX_NC_NAME);
data/libminc-2.4.03/libsrc/voxel_loop.c:1182: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).
   att_length += strlen(arg_string) + 1;
data/libminc-2.4.03/libsrc/voxel_loop.c:3055: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).
   if ((dimension_name == NULL) || ((int)strlen(dimension_name) <= 0)) {
data/libminc-2.4.03/libsrc2/datatype.c:95:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen ( MI_NATIVE );
data/libminc-2.4.03/libsrc2/datatype.c:113:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                             "spacetype", strlen ( name ), name );
data/libminc-2.4.03/libsrc2/dimension.c:937:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( ( strlen ( comments ) + 1 ) <= MI2_CHAR_LENGTH ) {
data/libminc-2.4.03/libsrc2/dimension.c:980:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( ( strlen ( name ) + 1 ) > MI2_CHAR_LENGTH ) {
data/libminc-2.4.03/libsrc2/dimension.c:1479:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( strlen ( units ) + 1 > MI2_CHAR_LENGTH ) {
data/libminc-2.4.03/libsrc2/grpattr.c:48:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy ( fullpath, MI_ROOT_PATH "/" , length );
data/libminc-2.4.03/libsrc2/grpattr.c:50:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy ( fullpath, MI_ROOT_PATH "/" MI_INFO_NAME, length );
data/libminc-2.4.03/libsrc2/grpattr.c:55:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(fullpath, "/", length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:55:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat(fullpath, "/", length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:58:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(fullpath, path,  length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:58:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strncat(fullpath, path,  length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:64:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(fullpath, MI_ROOT_PATH "/" MI_INFO_NAME, length);
data/libminc-2.4.03/libsrc2/grpattr.c:67:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(fullpath, "/", length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:67:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat(fullpath, "/", length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:70:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat(fullpath, path,  length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:70:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  strncat(fullpath, path,  length - strlen(fullpath) - 1);
data/libminc-2.4.03/libsrc2/grpattr.c:170:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        l = strlen ( frame->relpath );
data/libminc-2.4.03/libsrc2/grpattr.c:173:11:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
          strcat ( frame->relpath, "/" );
data/libminc-2.4.03/libsrc2/grpattr.c:182:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy ( path, data->frame_ptr->relpath, MILIST_MAX_PATH );
data/libminc-2.4.03/libsrc2/grpattr.c:198:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy ( data->name_ptr, attr_name, data->name_len );
data/libminc-2.4.03/libsrc2/grpattr.c:223:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy ( path, data->frame_ptr->relpath, maxpath );
data/libminc-2.4.03/libsrc2/grpattr.c:280:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen ( data->frame_ptr->relpath );
data/libminc-2.4.03/libsrc2/grpattr.c:283:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat ( data->frame_ptr->relpath, "/" );
data/libminc-2.4.03/libsrc2/grpattr.c:303:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ( fullpath, MI_ROOT_PATH "/" MI_INFO_NAME, sizeof ( fullpath ) - 1 );
data/libminc-2.4.03/libsrc2/grpattr.c:304:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat ( fullpath, data->frame_ptr->relpath, sizeof ( fullpath ) - strlen ( fullpath ) - 1 );
data/libminc-2.4.03/libsrc2/grpattr.c:304:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat ( fullpath, data->frame_ptr->relpath, sizeof ( fullpath ) - strlen ( fullpath ) - 1 );
data/libminc-2.4.03/libsrc2/grpattr.c:314:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy ( path, data->frame_ptr->relpath, maxpath );
data/libminc-2.4.03/libsrc2/grpattr.c:315:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy ( data->frame_ptr->relpath, tmp, maxpath );
data/libminc-2.4.03/libsrc2/grpattr.c:906:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    slength = strlen ( path ) - ( pch - path );
data/libminc-2.4.03/libsrc2/grpattr.c:914: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).
    std_name = malloc ( strlen ( path ) + 1 );
data/libminc-2.4.03/libsrc2/label.c:57: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(name) > MI_LABEL_MAX) {
data/libminc-2.4.03/libsrc2/m2util.c:2030:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = miset_attr_at_loc ( dset_id, MIvartype, MI_TYPE_STRING, strlen ( MI_GROUP ), MI_GROUP );
data/libminc-2.4.03/libsrc2/m2util.c:2043:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = miset_attr_at_loc ( dset_id, MIvarid, MI_TYPE_STRING, strlen ( MI_STDVAR ), MI_STDVAR );
data/libminc-2.4.03/libsrc2/m2util.c:2049:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = miset_attr_at_loc ( dset_id, MIvartype, MI_TYPE_STRING, strlen ( MI_GROUP ), MI_GROUP );
data/libminc-2.4.03/libsrc2/m2util.c:2055:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = miset_attr_at_loc ( dset_id, MIversion, MI_TYPE_STRING, strlen ( MI_VERSION_2_0 ), MI_VERSION_2_0 );
data/libminc-2.4.03/libsrc2/volume.c:84:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(user_str, temp_ptr, sizeof(user_str) - 1);
data/libminc-2.4.03/libsrc2/volume.c:296:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(dimorder, volume->dim_handles[i]->name, MI2_CHAR_LENGTH - 1 - strlen(dimorder)); /*as a replacement for strlcat*/
data/libminc-2.4.03/libsrc2/volume.c:296:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncat(dimorder, volume->dim_handles[i]->name, MI2_CHAR_LENGTH - 1 - strlen(dimorder)); /*as a replacement for strlcat*/
data/libminc-2.4.03/libsrc2/volume.c:322:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strlen(dimorder), dimorder);
data/libminc-2.4.03/libsrc2/volume.c:351:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(dimorder, volume->dim_handles[i]->name, MI2_CHAR_LENGTH - 1 - strlen(dimorder));
data/libminc-2.4.03/libsrc2/volume.c:351:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strncat(dimorder, volume->dim_handles[i]->name, MI2_CHAR_LENGTH - 1 - strlen(dimorder));
data/libminc-2.4.03/libsrc2/volume.c:353:11:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
          strncat(dimorder, ",", MI2_CHAR_LENGTH - 1 - strlen(dimorder));
data/libminc-2.4.03/libsrc2/volume.c:353:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          strncat(dimorder, ",", MI2_CHAR_LENGTH - 1 - strlen(dimorder));
data/libminc-2.4.03/libsrc2/volume.c:367: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).
                        strlen(dimorder), dimorder);
data/libminc-2.4.03/libsrc2/volume.c:381: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).
                        strlen(dimorder), dimorder);
data/libminc-2.4.03/libsrc2/volume.c:594:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  strlen(ident_str), ident_str);
data/libminc-2.4.03/libsrc2/volume.c:596:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  strlen(MINC_VERSION), MINC_VERSION);
data/libminc-2.4.03/libsrc2/volume.c:755:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(dimensions[i]->name) + 6 + 1;
data/libminc-2.4.03/libsrc2/volume.c:772:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen(dimensions[i]->name), dimensions[i]->name);
data/libminc-2.4.03/libsrc2/volume.c:775:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          strlen(dimensions[i]->name), dimensions[i]->name);
data/libminc-2.4.03/libsrc2/volume.c:800: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).
                      strlen(name), name);
data/libminc-2.4.03/libsrc2/volume.c:841:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      miset_attr_at_loc(dataset_id, "class", MI_TYPE_STRING, strlen(name),
data/libminc-2.4.03/libsrc2/volume.c:860: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).
                        strlen(align_str), align_str);
data/libminc-2.4.03/libsrc2/volume.c:864: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).
                      strlen(dimensions[i]->units), dimensions[i]->units);
data/libminc-2.4.03/libsrc2/volume.c:877: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).
                        strlen(dimensions[i]->comments),
data/libminc-2.4.03/libsrc2/volume.c:999:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      props_handle->record_name =malloc(strlen(create_props->record_name) + 1 );
data/libminc-2.4.03/libsrc2/volume.c:1125:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  strlen(class_ptr), class_ptr);
data/libminc-2.4.03/nifti/nifti1_io.c:1168: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).
  dup = (char *)malloc(strlen(str) + 1);
data/libminc-2.4.03/nifti/nifti1_io.c:1173:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    (unsigned int)strlen(str)+1);
data/libminc-2.4.03/nifti/nifti1_io.c:2605:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int)strlen(name);
data/libminc-2.4.03/nifti/nifti1_io.c:2611:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(extcopy, ext, MAX_EXT_LEN);
data/libminc-2.4.03/nifti/nifti1_io.c:2630:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(extcopy, ext, MAX_EXT_LEN);
data/libminc-2.4.03/nifti/nifti1_io.c:2663: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).
     len = (int)strlen(fname);
data/libminc-2.4.03/nifti/nifti1_io.c:2665: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 (fileext_compare(fname + strlen(fname) - 3,".gz")==0) { return 1; }
data/libminc-2.4.03/nifti/nifti1_io.c:2793: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).
   hdrname = (char *)calloc(sizeof(char),strlen(basename)+MAX_EXT_LEN+1);
data/libminc-2.4.03/nifti/nifti1_io.c:2857: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).
   imgname = (char *)calloc(sizeof(char),strlen(basename)+MAX_EXT_LEN+1);
data/libminc-2.4.03/nifti/nifti1_io.c:2943:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   iname = (char *)calloc(sizeof(char),strlen(prefix)+MAX_EXT_LEN+1);
data/libminc-2.4.03/nifti/nifti1_io.c:3011:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   iname = (char *)calloc(sizeof(char),strlen(prefix)+MAX_EXT_LEN+1);
data/libminc-2.4.03/nifti/nifti1_io.c:3225:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(known_ext);
data/libminc-2.4.03/nifti/nifti1_io.c:3251:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen(known_ext);
data/libminc-2.4.03/nifti/nifti1_io.c:3269:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   n = strlen(str);
data/libminc-2.4.03/nifti/nifti1_io.c:3284:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   n = strlen(str);
data/libminc-2.4.03/nifti/nifti1_io.c:3301:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   n = strlen(str);
data/libminc-2.4.03/nifti/nifti1_io.c:3315:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   n = strlen(str);
data/libminc-2.4.03/nifti/nifti1_io.c:5957:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ll = (int)strlen(str) ; if( ll == 0 ) return 0 ;
data/libminc-2.4.03/nifti/nifti1_io.c:6054: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( str == NULL || (lstr=(int)strlen(str)) == 0 ){      /* 0 length */
data/libminc-2.4.03/nifti/nifti1_io.c:6125: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).
   sprintf( buf+strlen(buf) , "  nifti_type = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6139: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).
   sprintf( buf+strlen(buf) , "  header_filename = %s\n",ebuf); free(ebuf);
data/libminc-2.4.03/nifti/nifti1_io.c:6142: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).
   sprintf( buf+strlen(buf) , "  image_filename = %s\n", ebuf); free(ebuf);
data/libminc-2.4.03/nifti/nifti1_io.c:6144: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).
   sprintf( buf+strlen(buf) , "  image_offset = '%d'\n" , nim->iname_offset );
data/libminc-2.4.03/nifti/nifti1_io.c:6146:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       sprintf( buf+strlen(buf), "  ndim = '%d'\n", nim->ndim);
data/libminc-2.4.03/nifti/nifti1_io.c:6147:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       sprintf( buf+strlen(buf), "  nx = '%d'\n",   nim->nx  );
data/libminc-2.4.03/nifti/nifti1_io.c:6148:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 1 ) sprintf( buf+strlen(buf), "  ny = '%d'\n",   nim->ny  );
data/libminc-2.4.03/nifti/nifti1_io.c:6149:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 2 ) sprintf( buf+strlen(buf), "  nz = '%d'\n",   nim->nz  );
data/libminc-2.4.03/nifti/nifti1_io.c:6150:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 3 ) sprintf( buf+strlen(buf), "  nt = '%d'\n",   nim->nt  );
data/libminc-2.4.03/nifti/nifti1_io.c:6151:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 4 ) sprintf( buf+strlen(buf), "  nu = '%d'\n",   nim->nu  );
data/libminc-2.4.03/nifti/nifti1_io.c:6152:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 5 ) sprintf( buf+strlen(buf), "  nv = '%d'\n",   nim->nv  );
data/libminc-2.4.03/nifti/nifti1_io.c:6153:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 6 ) sprintf( buf+strlen(buf), "  nw = '%d'\n",   nim->nw  );
data/libminc-2.4.03/nifti/nifti1_io.c:6154:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       sprintf( buf+strlen(buf), "  dx = '%g'\n",   nim->dx  );
data/libminc-2.4.03/nifti/nifti1_io.c:6155:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 1 ) sprintf( buf+strlen(buf), "  dy = '%g'\n",   nim->dy  );
data/libminc-2.4.03/nifti/nifti1_io.c:6156:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 2 ) sprintf( buf+strlen(buf), "  dz = '%g'\n",   nim->dz  );
data/libminc-2.4.03/nifti/nifti1_io.c:6157:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 3 ) sprintf( buf+strlen(buf), "  dt = '%g'\n",   nim->dt  );
data/libminc-2.4.03/nifti/nifti1_io.c:6158:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 4 ) sprintf( buf+strlen(buf), "  du = '%g'\n",   nim->du  );
data/libminc-2.4.03/nifti/nifti1_io.c:6159:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 5 ) sprintf( buf+strlen(buf), "  dv = '%g'\n",   nim->dv  );
data/libminc-2.4.03/nifti/nifti1_io.c:6160:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if( nim->ndim > 6 ) sprintf( buf+strlen(buf), "  dw = '%g'\n",   nim->dw  );
data/libminc-2.4.03/nifti/nifti1_io.c:6162: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).
   sprintf( buf+strlen(buf) , "  datatype = '%d'\n" , nim->datatype ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6163: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).
   sprintf( buf+strlen(buf) , "  datatype_name = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6166: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).
   sprintf( buf+strlen(buf) , "  nvox = '%u'\n" , (unsigned)nim->nvox ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6167: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).
   sprintf( buf+strlen(buf) , "  nbyper = '%d'\n" , nim->nbyper ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6169: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).
   sprintf( buf+strlen(buf) , "  byteorder = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6173:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  cal_min = '%g'\n", nim->cal_min ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6174:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  cal_max = '%g'\n", nim->cal_max ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6178:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  scl_slope = '%g'\n" , nim->scl_slope ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6179:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  scl_inter = '%g'\n" , nim->scl_inter ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6183:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  intent_code = '%d'\n", nim->intent_code ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6184:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  intent_code_name = '%s'\n" ,
data/libminc-2.4.03/nifti/nifti1_io.c:6186:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  intent_p1 = '%g'\n" , nim->intent_p1 ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6187:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  intent_p2 = '%g'\n" , nim->intent_p2 ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6188:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  intent_p3 = '%g'\n" , nim->intent_p3 ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6192:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       sprintf( buf+strlen(buf) , "  intent_name = %s\n",ebuf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6198:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  toffset = '%g'\n",nim->toffset ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6201:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6207:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6213:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  freq_dim = '%d'\n",nim->freq_dim ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6215:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  phase_dim = '%d'\n",nim->phase_dim ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6217:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  slice_dim = '%d'\n",nim->slice_dim ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6219:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6224:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6228:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  slice_duration = '%g'\n",
data/libminc-2.4.03/nifti/nifti1_io.c:6233:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  descrip = %s\n",ebuf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6239:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) , "  aux_file = %s\n",ebuf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6246:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6260:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6271:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6284:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6296:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6310:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6323:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       sprintf( buf+strlen(buf) ,
data/libminc-2.4.03/nifti/nifti1_io.c:6332: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).
   sprintf( buf+strlen(buf) , "  num_ext = '%d'\n", nim->num_ext ) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6334: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).
   sprintf( buf+strlen(buf) , "/>\n" ) ;   /* XML-ish closer */
data/libminc-2.4.03/nifti/nifti1_io.c:6336:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   nbuf = (int)strlen(buf) ;
data/libminc-2.4.03/nifti/nifti1_io.c:6379:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                       strncpy(nim->nam,rhs,ml), nim->nam[ml]='\0'
data/libminc-2.4.03/nifti/nifti1_io.c:6401:9:  [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.
   ii = sscanf( str+spos , "%1023s%n" , lhs , &nn ) ; spos += nn ;
data/libminc-2.4.03/nifti/nifti1_io.c:6431:11:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
     ii = sscanf( str+spos , "%1023s%n" , lhs , &nn ) ; spos += nn ;
data/libminc-2.4.03/nifti/nifti1_io.c:6449:14:  [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.
        ii = sscanf( str+spos , "%1023s%n" , rhs , &nn ) ; spos += nn ;
data/libminc-2.4.03/nifti/nifti1_io.c:7275:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   slen = (int)strlen(str) ;
data/libminc-2.4.03/nifti/znzlib.c:293:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fgetc(file->nzfptr);
data/libminc-2.4.03/nifti/znzlib.c:309:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(format) + 1000000;  /* overkill I hope */
data/libminc-2.4.03/testdir/minc2-m2stats.c:1162: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).
   end = nextarg + strlen(nextarg);
data/libminc-2.4.03/testdir/vio_xfm_test/verify_xfm.c:110:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      fgetc(in);
data/libminc-2.4.03/volume_io/Prog_utils/files.c:874: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).
  tmpfile_ptr = malloc(strlen(tmpdir_ptr) + sizeof (pat_str));
data/libminc-2.4.03/volume_io/Prog_utils/files.c:1360:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc( file );
data/libminc-2.4.03/volume_io/Prog_utils/print.c:274:25:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ch = (char) getchar();
data/libminc-2.4.03/volume_io/Prog_utils/print.c:278:16:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while( getchar() != '\n' )
data/libminc-2.4.03/volume_io/Prog_utils/string.c:115: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).
        return( (int) strlen( string ) );
data/libminc-2.4.03/volume_io/Volumes/input_nrrd.c:1067:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(nrrd_ptr->data_file, str_ptr, NRRD_MAX_PATH);
data/libminc-2.4.03/volume_io/Volumes/output_mnc2.c:663:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      new_history_length=minc_history_length+strlen(history_string)+1;
data/libminc-2.4.03/volume_io/Volumes/output_mnc2.c:673:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      miset_attr_values(file->minc2id,MI_TYPE_STRING,"","history",strlen(history_string)+1,history_string);

ANALYSIS SUMMARY:

Hits = 791
Lines analyzed = 97212 in approximately 2.56 seconds (37956 lines/second)
Physical Source Lines of Code (SLOC) = 60768
Hits@level = [0] 1053 [1] 192 [2] 379 [3]  47 [4] 170 [5]   3
Hits@level+ = [0+] 1844 [1+] 791 [2+] 599 [3+] 220 [4+] 173 [5+]   3
Hits/KSLOC@level+ = [0+] 30.3449 [1+] 13.0167 [2+] 9.85716 [3+] 3.62033 [4+] 2.84689 [5+] 0.0493681
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.